tobiolatunji
commited on
Commit
·
31583b5
1
Parent(s):
e4f7b4f
fix absent splits
Browse files- afrispeech-200.py +11 -10
afrispeech-200.py
CHANGED
@@ -212,16 +212,17 @@ class AfriSpeech(datasets.GeneratorBasedBuilder):
|
|
212 |
# "test": datasets.Split.TEST,
|
213 |
}
|
214 |
for split in splits:
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
|
|
225 |
|
226 |
return split_generators
|
227 |
|
|
|
212 |
# "test": datasets.Split.TEST,
|
213 |
}
|
214 |
for split in splits:
|
215 |
+
if split in ACCENT_STATS[self.config.name]:
|
216 |
+
split_generators.append(
|
217 |
+
datasets.SplitGenerator(
|
218 |
+
name=split_names.get(split, split),
|
219 |
+
gen_kwargs={
|
220 |
+
"local_extracted_archive_paths": local_extracted_archive_paths.get(split),
|
221 |
+
"archives": [dl_manager.iter_archive(path) for path in archive_paths.get(split)],
|
222 |
+
"meta_path": meta_paths[split],
|
223 |
+
},
|
224 |
+
),
|
225 |
+
)
|
226 |
|
227 |
return split_generators
|
228 |
|