Update self_dataset.py
Browse files- 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 |
-
|
143 |
|
144 |
-
|
145 |
yield key, {
|
146 |
-
"path":
|
147 |
-
"audio":
|
148 |
-
"transcription":
|
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
|