Update builder.py
Browse files- builder.py +1 -1
builder.py
CHANGED
|
@@ -129,7 +129,7 @@ class NepaliAsr(datasets.GeneratorBasedBuilder):
|
|
| 129 |
with open(index_file, encoding="utf-8") as f:
|
| 130 |
reader = csv.DictReader(f , delimiter="\t")
|
| 131 |
for key, row in enumerate(reader):
|
| 132 |
-
path = os.path.join(audio_paths, "CLEAN_DATA", row['utterance_id'])
|
| 133 |
yield key, {
|
| 134 |
"utterance_id": row["utterance_id"].replace(".flac",""),
|
| 135 |
"utterance": path,
|
|
|
|
| 129 |
with open(index_file, encoding="utf-8") as f:
|
| 130 |
reader = csv.DictReader(f , delimiter="\t")
|
| 131 |
for key, row in enumerate(reader):
|
| 132 |
+
path = os.path.join(f"{audio_paths}", "CLEAN_DATA", f"{row['utterance_id']}")
|
| 133 |
yield key, {
|
| 134 |
"utterance_id": row["utterance_id"].replace(".flac",""),
|
| 135 |
"utterance": path,
|