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

Testing configs

Browse files
Files changed (1) hide show
  1. opusparcus.py +3 -3
opusparcus.py CHANGED
@@ -165,11 +165,11 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
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.
 
165
  ]
166
 
167
  def _generate_examples(
168
+ self, filepath, split, lang, quality # 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.