Seosnaps commited on
Commit
3c2933f
1 Parent(s): 7d69300

Update common_voice_16_0_.py

Browse files
Files changed (1) hide show
  1. 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 = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/blob/audio/ha/{split}/ha_{split}_0.tar"
48
 
49
- _TRANSCRIPT_URL = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/blob/main/transcript/ha/transcript_ha_{split}.tsv"
50
 
51
  _N_SHARDS_URL = "n_shards.json"
52
 
@@ -137,10 +137,10 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
137
  n_shards = json.load(f)
138
 
139
  audio_urls = {}
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 {}
 
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 = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/blob/audio/{lang}/{split}/{lang}_{split}_0.tar"
48
 
49
+ _TRANSCRIPT_URL = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/blob/main/transcript/{lang}/transcript_{lang}_{split}.tsv"
50
 
51
  _N_SHARDS_URL = "n_shards.json"
52
 
 
137
  n_shards = json.load(f)
138
 
139
  audio_urls = {}
140
+ splits = ("train", "dev", "test", "other")
141
  for split in splits:
142
  audio_urls[split] = [
143
+ _AUDIO_URL.format(lang='ha', split=split, shard_idx=0) for 0 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 {}