Commit
•
db6c031
1
Parent(s):
3144062
fix bug in csv loading
Browse files- tedlium.py +1 -1
tedlium.py
CHANGED
@@ -273,7 +273,7 @@ class TedLium(datasets.GeneratorBasedBuilder):
|
|
273 |
def _generate_examples(self, filepath, local_extracted_archive, split_path, whisper_transcript):
|
274 |
whisper_transcriptions = dict()
|
275 |
with open(whisper_transcript, encoding="utf-8") as f:
|
276 |
-
reader = csv.DictReader(f, delimiter=","
|
277 |
for line in reader:
|
278 |
whisper_transcriptions[line["file_id"]] = line["whisper_transcript"]
|
279 |
|
|
|
273 |
def _generate_examples(self, filepath, local_extracted_archive, split_path, whisper_transcript):
|
274 |
whisper_transcriptions = dict()
|
275 |
with open(whisper_transcript, encoding="utf-8") as f:
|
276 |
+
reader = csv.DictReader(f, delimiter=",")
|
277 |
for line in reader:
|
278 |
whisper_transcriptions[line["file_id"]] = line["whisper_transcript"]
|
279 |
|