Update builder.py
Browse files- builder.py +0 -2
builder.py
CHANGED
|
@@ -90,9 +90,7 @@ class ASR_SAM(datasets.GeneratorBasedBuilder):
|
|
| 90 |
with open(index_file, encoding="utf-8") as fp:
|
| 91 |
reader = csv.DictReader(fp)
|
| 92 |
for key, row in enumerate(reader):
|
| 93 |
-
path = os.path.join(audio_paths, 'CLEAN_DATA', row['utterance_id'])
|
| 94 |
yield key, {
|
| 95 |
"utterance_id": row['utterance_id'],
|
| 96 |
-
"utterance": path,
|
| 97 |
"transcription": row['transcription'],
|
| 98 |
}
|
|
|
|
| 90 |
with open(index_file, encoding="utf-8") as fp:
|
| 91 |
reader = csv.DictReader(fp)
|
| 92 |
for key, row in enumerate(reader):
|
|
|
|
| 93 |
yield key, {
|
| 94 |
"utterance_id": row['utterance_id'],
|
|
|
|
| 95 |
"transcription": row['transcription'],
|
| 96 |
}
|