ingerid commited on
Commit
d6900c6
1 Parent(s): e08608a

strip down file_name in dataset

Browse files
Files changed (1) hide show
  1. nb_samtale.py +1 -0
nb_samtale.py CHANGED
@@ -155,6 +155,7 @@ class NBSamtale(datasets.GeneratorBasedBuilder):
155
  for row in datalines:
156
  data = json.loads(row)
157
  audio_path = data["file_name"]
 
158
  data["transcription"] = data[self.config.name]
159
  meta[audio_path] = data
160
 
 
155
  for row in datalines:
156
  data = json.loads(row)
157
  audio_path = data["file_name"]
158
+ data["file_name"] = data["file_name"].split("/")[-1]
159
  data["transcription"] = data[self.config.name]
160
  meta[audio_path] = data
161