Seosnaps
commited on
Commit
•
1afb641
1
Parent(s):
96379c1
Update common_voice_16_0_.py
Browse files- common_voice_16_0_.py +4 -4
common_voice_16_0_.py
CHANGED
@@ -44,9 +44,9 @@ _LICENSE = "https://creativecommons.org/publicdomain/zero/1.0/"
|
|
44 |
# TODO: change "streaming" to "main" after merge!
|
45 |
_BASE_URL = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/tree/main"
|
46 |
|
47 |
-
_AUDIO_URL = "audio/
|
48 |
|
49 |
-
_TRANSCRIPT_URL = "transcript/
|
50 |
|
51 |
_N_SHARDS_URL = "n_shards.json"
|
52 |
|
@@ -140,12 +140,12 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
140 |
splits = ("train", "dev", "test")
|
141 |
for split in splits:
|
142 |
audio_urls[split] = [
|
143 |
-
_AUDIO_URL.format(lang=
|
144 |
]
|
145 |
archive_paths = dl_manager.download(audio_urls)
|
146 |
local_extracted_archive_paths = dl_manager.extract(archive_paths) if not dl_manager.is_streaming else {}
|
147 |
|
148 |
-
meta_urls = {split: _TRANSCRIPT_URL.format(lang=
|
149 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
150 |
|
151 |
split_generators = []
|
|
|
44 |
# TODO: change "streaming" to "main" after merge!
|
45 |
_BASE_URL = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/tree/main"
|
46 |
|
47 |
+
_AUDIO_URL = "audio/ha/{split}/ha_{split}_1.tar"
|
48 |
|
49 |
+
_TRANSCRIPT_URL = "transcript/ha/{split}.tsv"
|
50 |
|
51 |
_N_SHARDS_URL = "n_shards.json"
|
52 |
|
|
|
140 |
splits = ("train", "dev", "test")
|
141 |
for split in splits:
|
142 |
audio_urls[split] = [
|
143 |
+
_AUDIO_URL.format(lang='ha', split=split, shard_idx=0) for i in range(n_shards['ha'][split])
|
144 |
]
|
145 |
archive_paths = dl_manager.download(audio_urls)
|
146 |
local_extracted_archive_paths = dl_manager.extract(archive_paths) if not dl_manager.is_streaming else {}
|
147 |
|
148 |
+
meta_urls = {split: _TRANSCRIPT_URL.format(lang='ha', split=split) for split in splits}
|
149 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
150 |
|
151 |
split_generators = []
|