versae commited on
Commit
4fda061
·
verified ·
1 Parent(s): c62837e

Update mc4-sampling.py

Browse files
Files changed (1) hide show
  1. mc4-sampling.py +2 -1
mc4-sampling.py CHANGED
@@ -277,6 +277,7 @@ class Mc4SamplingConfig(datasets.BuilderConfig):
277
  languages (:obj:`List[str]`): list of languages to load
278
  **kwargs: keyword arguments forwarded to super.
279
  """
 
280
  languages = kwargs.pop("languages", [])
281
  super().__init__(
282
  *args,
@@ -289,7 +290,7 @@ class Mc4SamplingConfig(datasets.BuilderConfig):
289
  class Mc4Sampling(datasets.GeneratorBasedBuilder):
290
  """mC4 Sampling, a colossal, cleaned version of Common Crawl's web crawl corpus."""
291
 
292
- BUILDER_CONFIGS = [Mc4SamplingConfig(languages=[lang]) for lang in _LANGUAGES]
293
  BUILDER_CONFIG_CLASS = Mc4SamplingConfig
294
 
295
  def __init__(self, *args, writer_batch_size=None, **kwargs):
 
277
  languages (:obj:`List[str]`): list of languages to load
278
  **kwargs: keyword arguments forwarded to super.
279
  """
280
+ print(args, kwargs)
281
  languages = kwargs.pop("languages", [])
282
  super().__init__(
283
  *args,
 
290
  class Mc4Sampling(datasets.GeneratorBasedBuilder):
291
  """mC4 Sampling, a colossal, cleaned version of Common Crawl's web crawl corpus."""
292
 
293
+ BUILDER_CONFIGS = [Mc4SamplingConfig(config_kwargs={"languages": [lang]}) for lang in _LANGUAGES]
294
  BUILDER_CONFIG_CLASS = Mc4SamplingConfig
295
 
296
  def __init__(self, *args, writer_batch_size=None, **kwargs):