Edmon02 commited on
Commit
e6b9802
1 Parent(s): 95a04b5

Update hyvoxpopuli.py

Browse files
Files changed (1) hide show
  1. 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
- # Convert audio data
44
- audio_path = AUDIO_ARCHIVE_PATH.format(split=split)
45
- convert_to_parquet(audio_path, f"{split}_audio.parquet")
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)