tobiolatunji
commited on
Commit
·
7c0e406
1
Parent(s):
8a9e643
fix shards
Browse files- afrispeech-200.py +2 -1
afrispeech-200.py
CHANGED
@@ -18,6 +18,7 @@
|
|
18 |
# https://huggingface.co/datasets/vivos/blob/main/vivos.py
|
19 |
# https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/blob/main/common_voice_11_0.py
|
20 |
# https://huggingface.co/datasets/PolyAI/minds14/blob/main/minds14.py
|
|
|
21 |
|
22 |
import csv
|
23 |
import os
|
@@ -182,7 +183,7 @@ class AfriSpeech(datasets.GeneratorBasedBuilder):
|
|
182 |
for split in splits:
|
183 |
if accent == 'all':
|
184 |
audio_urls[split] = [
|
185 |
-
|
186 |
for accent in ACCENT_STATS for i in range(ACCENT_STATS[accent][split]['shards'])
|
187 |
if accent != 'all'
|
188 |
]
|
|
|
18 |
# https://huggingface.co/datasets/vivos/blob/main/vivos.py
|
19 |
# https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/blob/main/common_voice_11_0.py
|
20 |
# https://huggingface.co/datasets/PolyAI/minds14/blob/main/minds14.py
|
21 |
+
# https://huggingface.co/docs/datasets/share#clone-the-repository
|
22 |
|
23 |
import csv
|
24 |
import os
|
|
|
183 |
for split in splits:
|
184 |
if accent == 'all':
|
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'
|
189 |
]
|