Update self_dataset.py
Browse files- self_dataset.py +3 -3
self_dataset.py
CHANGED
|
@@ -141,10 +141,10 @@ class ATC(datasets.GeneratorBasedBuilder):
|
|
| 141 |
for row in csv_reader:
|
| 142 |
file_name, reference = row
|
| 143 |
|
| 144 |
-
|
| 145 |
yield key, {
|
| 146 |
-
"path":
|
| 147 |
-
"audio":
|
| 148 |
"transcription": reference,
|
| 149 |
"lang_id": _ALL_CONFIGS.index(lang),
|
| 150 |
}
|
|
|
|
| 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 |
}
|