St4n commited on
Commit
4da625d
1 Parent(s): a7faf2f

Update self_dataset.py

Browse files
Files changed (1) hide show
  1. self_dataset.py +5 -5
self_dataset.py CHANGED
@@ -139,13 +139,13 @@ class ATC(datasets.GeneratorBasedBuilder):
139
  csv_reader = csv.reader(csv_file, delimiter=",", skipinitialspace=True)
140
  next(csv_reader)
141
  for row in csv_reader:
142
- file_name, reference = row
143
 
144
- file_name = os.path.join(audio_path, *file_path.split("/"))
145
  yield key, {
146
- "path": file_name,
147
- "audio": file_name,
148
- "transcription": reference,
149
  "lang_id": _ALL_CONFIGS.index(lang),
150
  }
151
  key += 1
 
139
  csv_reader = csv.reader(csv_file, delimiter=",", skipinitialspace=True)
140
  next(csv_reader)
141
  for row in csv_reader:
142
+ file_path, transcription = row
143
 
144
+ file_path = os.path.join(audio_path, *file_path.split("/"))
145
  yield key, {
146
+ "path": file_path,
147
+ "audio": file_path,
148
+ "transcription": transcription,
149
  "lang_id": _ALL_CONFIGS.index(lang),
150
  }
151
  key += 1