Update wikitext_alltime.py
Browse files- wikitext_alltime.py +2 -2
wikitext_alltime.py
CHANGED
|
@@ -54,7 +54,7 @@ class Wikitext_alltimes(datasets.GeneratorBasedBuilder):
|
|
| 54 |
"""Returns SplitGenerators."""
|
| 55 |
if self.config.name == "all":
|
| 56 |
times = _TIMES[:-1]
|
| 57 |
-
files = dl_manager.download([f"
|
| 58 |
return [
|
| 59 |
datasets.SplitGenerator(
|
| 60 |
name=datasets.Split.TRAIN,
|
|
@@ -63,7 +63,7 @@ class Wikitext_alltimes(datasets.GeneratorBasedBuilder):
|
|
| 63 |
]
|
| 64 |
else:
|
| 65 |
time = self.config.name
|
| 66 |
-
_URL = f"
|
| 67 |
file = dl_manager.download(_URL)
|
| 68 |
return [
|
| 69 |
datasets.SplitGenerator(
|
|
|
|
| 54 |
"""Returns SplitGenerators."""
|
| 55 |
if self.config.name == "all":
|
| 56 |
times = _TIMES[:-1]
|
| 57 |
+
files = dl_manager.download([f"wiki/{time}.json" for time in _TIMES ])
|
| 58 |
return [
|
| 59 |
datasets.SplitGenerator(
|
| 60 |
name=datasets.Split.TRAIN,
|
|
|
|
| 63 |
]
|
| 64 |
else:
|
| 65 |
time = self.config.name
|
| 66 |
+
_URL = f"wiki/{time}.json"
|
| 67 |
file = dl_manager.download(_URL)
|
| 68 |
return [
|
| 69 |
datasets.SplitGenerator(
|