anton-l HF staff commited on
Commit
7374369
1 Parent(s): 7155eaf

Fix newlines

Browse files
Files changed (1) hide show
  1. multilingual_librispeech.py +1 -1
multilingual_librispeech.py CHANGED
@@ -153,7 +153,7 @@ class MultilingualLibrispeech(datasets.GeneratorBasedBuilder):
153
  transcripts = dict()
154
  with open(transcript_path, "r", encoding="utf-8") as file:
155
  for line in file:
156
- audio_id, transcript = line.split("\t")
157
  transcripts[audio_id] = transcript
158
 
159
  limited_ids, limited_ids_archives_names = [], []
 
153
  transcripts = dict()
154
  with open(transcript_path, "r", encoding="utf-8") as file:
155
  for line in file:
156
+ audio_id, transcript = line.strip().split("\t")
157
  transcripts[audio_id] = transcript
158
 
159
  limited_ids, limited_ids_archives_names = [], []