Datasets:
conceptofmind
commited on
Commit
•
84015e6
1
Parent(s):
fc0d863
Update megawika.py
Browse files- megawika.py +2 -2
megawika.py
CHANGED
@@ -96,7 +96,7 @@ with urllib.request.urlopen(file_list_url) as f:
|
|
96 |
|
97 |
_DATA_URL = fnames['fnames']
|
98 |
|
99 |
-
_VARIANTS = ["
|
100 |
|
101 |
|
102 |
class MegaWika(datasets.GeneratorBasedBuilder):
|
@@ -168,7 +168,7 @@ class MegaWika(datasets.GeneratorBasedBuilder):
|
|
168 |
)
|
169 |
|
170 |
def _split_generators(self, dl_manager):
|
171 |
-
if self.config.name == "
|
172 |
data_sources = _DATA_URL
|
173 |
else:
|
174 |
data_sources = {self.config.name: _DATA_URL[self.config.name]}
|
|
|
96 |
|
97 |
_DATA_URL = fnames['fnames']
|
98 |
|
99 |
+
_VARIANTS = ["all"] + list(_DATA_URL.keys())
|
100 |
|
101 |
|
102 |
class MegaWika(datasets.GeneratorBasedBuilder):
|
|
|
168 |
)
|
169 |
|
170 |
def _split_generators(self, dl_manager):
|
171 |
+
if self.config.name == "all":
|
172 |
data_sources = _DATA_URL
|
173 |
else:
|
174 |
data_sources = {self.config.name: _DATA_URL[self.config.name]}
|