polinaeterna HF staff commited on
Commit
7422449
1 Parent(s): ca906e0

fix audio key in metadata

Browse files
Files changed (1) hide show
  1. afrispeech-200.py +1 -1
afrispeech-200.py CHANGED
@@ -144,7 +144,7 @@ class AfriSpeech(datasets.GeneratorBasedBuilder):
144
  for field in data_fields:
145
  if field not in row:
146
  row[field] = ""
147
- metadata[row["audio_paths"]] = row
148
 
149
  for i, audio_archive in enumerate(archives):
150
  for filename, file in audio_archive:
 
144
  for field in data_fields:
145
  if field not in row:
146
  row[field] = ""
147
+ metadata[row["audio_paths"].split("/")[-1]] = row
148
 
149
  for i, audio_archive in enumerate(archives):
150
  for filename, file in audio_archive: