Datasets:
Update mc4-es-sampled.py
Browse files- mc4-es-sampled.py +5 -4
mc4-es-sampled.py
CHANGED
|
@@ -38,10 +38,11 @@ _CONFIGS = [
|
|
| 38 |
"gaussian",
|
| 39 |
]
|
| 40 |
|
|
|
|
| 41 |
_N_SHARDS_PER_SPLIT = {
|
| 42 |
-
"random": {"train": 1024, "validation":
|
| 43 |
-
"stepwise": {"train": 1024, "validation":
|
| 44 |
-
"gaussian": {"train": 1024, "validation":
|
| 45 |
}
|
| 46 |
|
| 47 |
|
|
@@ -88,7 +89,7 @@ class Mc4EsSampled(datasets.GeneratorBasedBuilder):
|
|
| 88 |
data_urls["train"] = [
|
| 89 |
_DATA_URL_TRAIN.format(
|
| 90 |
config=config,
|
| 91 |
-
index=index,
|
| 92 |
n_shards=_N_SHARDS_PER_SPLIT[config]["train"],
|
| 93 |
)
|
| 94 |
for config in self.config.configs
|
|
|
|
| 38 |
"gaussian",
|
| 39 |
]
|
| 40 |
|
| 41 |
+
# The last validation shard is not working in the original allen/c4 repo
|
| 42 |
_N_SHARDS_PER_SPLIT = {
|
| 43 |
+
"random": {"train": 1024, "validation": 15},
|
| 44 |
+
"stepwise": {"train": 1024, "validation": 15},
|
| 45 |
+
"gaussian": {"train": 1024, "validation": 15},
|
| 46 |
}
|
| 47 |
|
| 48 |
|
|
|
|
| 89 |
data_urls["train"] = [
|
| 90 |
_DATA_URL_TRAIN.format(
|
| 91 |
config=config,
|
| 92 |
+
index=index + 1,
|
| 93 |
n_shards=_N_SHARDS_PER_SPLIT[config]["train"],
|
| 94 |
)
|
| 95 |
for config in self.config.configs
|