Upload date-data.py with huggingface_hub
Browse files- date-data.py +8 -6
date-data.py
CHANGED
|
@@ -79,12 +79,14 @@ class DateDate(datasets.GeneratorBasedBuilder):
|
|
| 79 |
[_URL.format(filename=zipfile) for zipfile in config_names]
|
| 80 |
)
|
| 81 |
|
| 82 |
-
return
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
|
|
|
|
|
| 88 |
|
| 89 |
|
| 90 |
def _generate_examples(
|
|
|
|
| 79 |
[_URL.format(filename=zipfile) for zipfile in config_names]
|
| 80 |
)
|
| 81 |
|
| 82 |
+
return [
|
| 83 |
+
datasets.SplitGenerator(
|
| 84 |
+
name=datasets.Split.TRAIN,
|
| 85 |
+
gen_kwargs={
|
| 86 |
+
"data_dirs": data_dirs,
|
| 87 |
+
}
|
| 88 |
+
)
|
| 89 |
+
]
|
| 90 |
|
| 91 |
|
| 92 |
def _generate_examples(
|