Datasets:
Update files from the datasets library (from 1.17.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.17.0
multilingual_librispeech.py
CHANGED
|
@@ -127,7 +127,7 @@ class MultilingualLibrispeech(datasets.GeneratorBasedBuilder):
|
|
| 127 |
all_ids = []
|
| 128 |
for path in all_ids_paths:
|
| 129 |
with open(path, "r", encoding="utf-8") as f:
|
| 130 |
-
all_ids += [
|
| 131 |
|
| 132 |
all_ids = set(all_ids)
|
| 133 |
|
|
|
|
| 127 |
all_ids = []
|
| 128 |
for path in all_ids_paths:
|
| 129 |
with open(path, "r", encoding="utf-8") as f:
|
| 130 |
+
all_ids += [line.strip() for line in f.readlines()]
|
| 131 |
|
| 132 |
all_ids = set(all_ids)
|
| 133 |
|