Datasets:
Commit
·
1046739
1
Parent(s):
68802b0
Update librispeech_asr_individual.py
Browse files
librispeech_asr_individual.py
CHANGED
@@ -68,6 +68,15 @@ _DL_URLS = {
|
|
68 |
"validation.clean": {
|
69 |
"dev.clean": _DL_URL + "dev-clean.tar.gz",
|
70 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
|
@@ -96,6 +105,9 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
|
|
96 |
LibrispeechASRConfig(name="other", description="'Other', more challenging, speech."),
|
97 |
LibrispeechASRConfig(name="all", description="Combined clean and other dataset."),
|
98 |
LibrispeechASRConfig(name="validation.clean", description="Validation Clean only"),
|
|
|
|
|
|
|
99 |
]
|
100 |
|
101 |
def _info(self):
|
@@ -253,6 +265,42 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
|
|
253 |
),
|
254 |
]
|
255 |
test_splits = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
|
257 |
return train_splits + dev_splits + test_splits
|
258 |
|
|
|
68 |
"validation.clean": {
|
69 |
"dev.clean": _DL_URL + "dev-clean.tar.gz",
|
70 |
}
|
71 |
+
"validation.other": {
|
72 |
+
"dev.other": _DL_URL + "dev-other.tar.gz",
|
73 |
+
}
|
74 |
+
"test.clean": {
|
75 |
+
"test.clean": _DL_URL + "test-clean.tar.gz",
|
76 |
+
}
|
77 |
+
"test.other": {
|
78 |
+
"test.other": _DL_URL + "test-other.tar.gz",
|
79 |
+
}
|
80 |
}
|
81 |
|
82 |
|
|
|
105 |
LibrispeechASRConfig(name="other", description="'Other', more challenging, speech."),
|
106 |
LibrispeechASRConfig(name="all", description="Combined clean and other dataset."),
|
107 |
LibrispeechASRConfig(name="validation.clean", description="Validation Clean only"),
|
108 |
+
LibrispeechASRConfig(name="validation.other", description="Validation Other only"),
|
109 |
+
LibrispeechASRConfig(name="test.clean", description="Test Clean only"),
|
110 |
+
LibrispeechASRConfig(name="test.other", description="Test Other only"),
|
111 |
]
|
112 |
|
113 |
def _info(self):
|
|
|
265 |
),
|
266 |
]
|
267 |
test_splits = []
|
268 |
+
elif self.config.name == "validation.other":
|
269 |
+
train_splits = []
|
270 |
+
dev_splits = [
|
271 |
+
datasets.SplitGenerator(
|
272 |
+
name="validation.other",
|
273 |
+
gen_kwargs={
|
274 |
+
"local_extracted_archive": local_extracted_archive.get("dev.clean"),
|
275 |
+
"files": dl_manager.iter_archive(archive_path["dev.clean"]),
|
276 |
+
},
|
277 |
+
),
|
278 |
+
]
|
279 |
+
test_splits = []
|
280 |
+
elif self.config.name == "test.clean":
|
281 |
+
train_splits = []
|
282 |
+
dev_splits = []
|
283 |
+
test_splits = [
|
284 |
+
datasets.SplitGenerator(
|
285 |
+
name="test.clean",
|
286 |
+
gen_kwargs={
|
287 |
+
"local_extracted_archive": local_extracted_archive.get("dev.clean"),
|
288 |
+
"files": dl_manager.iter_archive(archive_path["dev.clean"]),
|
289 |
+
},
|
290 |
+
),
|
291 |
+
]
|
292 |
+
elif self.config.name == "test.other":
|
293 |
+
train_splits = []
|
294 |
+
dev_splits = []
|
295 |
+
test_splits = [
|
296 |
+
datasets.SplitGenerator(
|
297 |
+
name="test.other",
|
298 |
+
gen_kwargs={
|
299 |
+
"local_extracted_archive": local_extracted_archive.get("dev.clean"),
|
300 |
+
"files": dl_manager.iter_archive(archive_path["dev.clean"]),
|
301 |
+
},
|
302 |
+
),
|
303 |
+
]
|
304 |
|
305 |
return train_splits + dev_splits + test_splits
|
306 |
|