DCNemesis commited on
Commit
2abf64b
1 Parent(s): 377103a

add debug code

Browse files
Files changed (1) hide show
  1. audio-keyword-spotting.py +3 -2
audio-keyword-spotting.py CHANGED
@@ -128,7 +128,7 @@ class AudioKeywordSpotting(datasets.GeneratorBasedBuilder):
128
  tfile += '.wav'
129
  yield key, {
130
  "file": tfile,
131
- "is_valid": datasets.Value("bool"),
132
  "language": row['language name'],
133
  "speaker_id": row['speaker_id'],
134
  "gender": row['gender'],
@@ -137,6 +137,7 @@ class AudioKeywordSpotting(datasets.GeneratorBasedBuilder):
137
  }
138
  except Exception as e:
139
  print(e)
140
- print('audio_dir', row['file'], os.path.join(audio_dir, row['file']))
 
141
  print(f'In split {split}: {row["file"]} failed to download. Data may be missing.')
142
  pass
 
128
  tfile += '.wav'
129
  yield key, {
130
  "file": tfile,
131
+ "is_valid": row['is_valid'],
132
  "language": row['language name'],
133
  "speaker_id": row['speaker_id'],
134
  "gender": row['gender'],
 
137
  }
138
  except Exception as e:
139
  print(e)
140
+ print('audio_dir', row['file'])
141
+ print(os.path.join(audio_dir, row['file']))
142
  print(f'In split {split}: {row["file"]} failed to download. Data may be missing.')
143
  pass