tobiolatunji commited on
Commit
9c93bb1
·
1 Parent(s): caf2984

mute search logs

Browse files
Files changed (1) hide show
  1. afrispeech-200.py +3 -1
afrispeech-200.py CHANGED
@@ -17,6 +17,7 @@
17
  # Adapted from
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
 
21
  import csv
22
  import os
@@ -202,7 +203,8 @@ class AfriSpeech(datasets.GeneratorBasedBuilder):
202
  metadata[audio_id] = {field: row.get(field, "") for field in data_fields}
203
 
204
  for i, audio_archive in enumerate(archives):
205
- for filename, file in tqdm(audio_archive, desc=f"Searching and Extracting audios for config {self.config.name}..."):
 
206
  # _, filename = os.path.split(filename)
207
  filename = "/".join(filename.split("/")[-2:])
208
  if filename in metadata:
 
17
  # Adapted from
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
 
203
  metadata[audio_id] = {field: row.get(field, "") for field in data_fields}
204
 
205
  for i, audio_archive in enumerate(archives):
206
+ #for filename, file in tqdm(audio_archive, desc=f"Searching and Extracting audios for config {self.config.name}..."):
207
+ for filename, file in audio_archive:
208
  # _, filename = os.path.split(filename)
209
  filename = "/".join(filename.split("/")[-2:])
210
  if filename in metadata: