Update hyvoxpopuli.py
Browse files- hyvoxpopuli.py +4 -9
hyvoxpopuli.py
CHANGED
@@ -39,16 +39,11 @@ class Hyvoxpopuli(datasets.GeneratorBasedBuilder):
|
|
39 |
for split in splits:
|
40 |
audio_urls[split] = [_AUDIO_ARCHIVE_PATH.format(split=split)]
|
41 |
|
|
|
42 |
for split in splits:
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
# Convert metadata
|
48 |
-
meta_path = METADATA_PATH.format(split=split)
|
49 |
-
convert_to_parquet(meta_path, f"{split}_metadata.parquet")
|
50 |
-
|
51 |
-
# dl_manager.download_config.num_proc = len(urls)
|
52 |
|
53 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
54 |
audio_paths = dl_manager.download(audio_urls)
|
|
|
39 |
for split in splits:
|
40 |
audio_urls[split] = [_AUDIO_ARCHIVE_PATH.format(split=split)]
|
41 |
|
42 |
+
meta_urls = defaultdict(dict)
|
43 |
for split in splits:
|
44 |
+
meta_urls[split] = _METADATA_PATH.format(split=split)
|
45 |
+
|
46 |
+
dl_manager.download_config.num_proc = len(urls)
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
49 |
audio_paths = dl_manager.download(audio_urls)
|