tobiolatunji
commited on
Commit
•
7f89ccd
1
Parent(s):
57c20fd
fix accent keys
Browse files- afrispeech-200.py +1 -1
afrispeech-200.py
CHANGED
@@ -185,7 +185,7 @@ class AfriSpeech(datasets.GeneratorBasedBuilder):
|
|
185 |
audio_urls[split] = [
|
186 |
_AUDIO_URL.format(accent=accent, split=split, shard_idx=i)
|
187 |
for accent in ACCENT_STATS for i in range(ACCENT_STATS[accent][split]['shards'])
|
188 |
-
if (accent != 'all') and (split in ACCENT_STATS[accent])
|
189 |
]
|
190 |
elif accent == 'all':
|
191 |
audio_urls[split] = [
|
|
|
185 |
audio_urls[split] = [
|
186 |
_AUDIO_URL.format(accent=accent, split=split, shard_idx=i)
|
187 |
for accent in ACCENT_STATS for i in range(ACCENT_STATS[accent][split]['shards'])
|
188 |
+
if (accent != 'all') and (split in ACCENT_STATS[accent]) and ('shards' in ACCENT_STATS[accent][split])
|
189 |
]
|
190 |
elif accent == 'all':
|
191 |
audio_urls[split] = [
|