Update mc4_validation.py
Browse files- mc4_validation.py +4 -4
mc4_validation.py
CHANGED
|
@@ -256,7 +256,7 @@ _N_SHARDS_PER_SPLIT = {
|
|
| 256 |
}
|
| 257 |
|
| 258 |
|
| 259 |
-
class
|
| 260 |
"""BuilderConfig for mC4."""
|
| 261 |
|
| 262 |
def __init__(self, *args, languages, **kwargs):
|
|
@@ -273,11 +273,11 @@ class Mc4Config(datasets.BuilderConfig):
|
|
| 273 |
self.languages = languages
|
| 274 |
|
| 275 |
|
| 276 |
-
class
|
| 277 |
"""mC4, a colossal, cleaned version of Common Crawl's web crawl corpus."""
|
| 278 |
|
| 279 |
-
BUILDER_CONFIGS = [
|
| 280 |
-
BUILDER_CONFIG_CLASS =
|
| 281 |
|
| 282 |
def _info(self):
|
| 283 |
return datasets.DatasetInfo(
|
|
|
|
| 256 |
}
|
| 257 |
|
| 258 |
|
| 259 |
+
class Mc4ValidationConfig(datasets.BuilderConfig):
|
| 260 |
"""BuilderConfig for mC4."""
|
| 261 |
|
| 262 |
def __init__(self, *args, languages, **kwargs):
|
|
|
|
| 273 |
self.languages = languages
|
| 274 |
|
| 275 |
|
| 276 |
+
class Mc4Validation(datasets.GeneratorBasedBuilder):
|
| 277 |
"""mC4, a colossal, cleaned version of Common Crawl's web crawl corpus."""
|
| 278 |
|
| 279 |
+
BUILDER_CONFIGS = [Mc4ValidationConfig(languages=[lang]) for lang in _LANGUAGES]
|
| 280 |
+
BUILDER_CONFIG_CLASS = Mc4ValidationConfig
|
| 281 |
|
| 282 |
def _info(self):
|
| 283 |
return datasets.DatasetInfo(
|