tobiolatunji
commited on
Commit
·
9d61f37
1
Parent(s):
472576b
fix absent split meta
Browse files- afrispeech-200.py +2 -1
afrispeech-200.py
CHANGED
@@ -201,7 +201,8 @@ class AfriSpeech(datasets.GeneratorBasedBuilder):
|
|
201 |
if accent == 'all':
|
202 |
meta_urls = {split: _TRANSCRIPT_URL_ALL.format(split=split) for split in splits}
|
203 |
else:
|
204 |
-
meta_urls = {split: _TRANSCRIPT_URL.format(accent=accent, split=split)
|
|
|
205 |
|
206 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
207 |
|
|
|
201 |
if accent == 'all':
|
202 |
meta_urls = {split: _TRANSCRIPT_URL_ALL.format(split=split) for split in splits}
|
203 |
else:
|
204 |
+
meta_urls = {split: _TRANSCRIPT_URL.format(accent=accent, split=split)
|
205 |
+
for split in splits if split in ACCENT_STATS[accent]}
|
206 |
|
207 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
208 |
|