mathiascreutz commited on
Commit
43aa0e8
·
1 Parent(s): a73e31a

Testing configs

Browse files
Files changed (1) hide show
  1. opusparcus.py +4 -1
opusparcus.py CHANGED
@@ -165,9 +165,12 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
165
  ]
166
 
167
  def _generate_examples(
168
- self, lang, quality, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
169
  ):
170
 
 
 
 
171
  """ Yields examples as (key, example) tuples. """
172
  # This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
173
  # The `key` is here for legacy reason (tfds) and is not important in itself.
 
165
  ]
166
 
167
  def _generate_examples(
168
+ self, configname, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
169
  ):
170
 
171
+ lang, qualitystr = configname.split("\.")
172
+ quality = int(qualitystr)
173
+
174
  """ Yields examples as (key, example) tuples. """
175
  # This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
176
  # The `key` is here for legacy reason (tfds) and is not important in itself.