Splend1dchan commited on
Commit
8bb33d1
1 Parent(s): deaefb5

Update librispeech_asr_individual.py

Browse files
Files changed (1) hide show
  1. librispeech_asr_individual.py +57 -1
librispeech_asr_individual.py CHANGED
@@ -77,6 +77,15 @@ _DL_URLS = {
77
  "test.other": {
78
  "test.other": _DL_URL + "test-other.tar.gz",
79
  }
 
 
 
 
 
 
 
 
 
80
  }
81
 
82
 
@@ -301,7 +310,54 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
301
  },
302
  ),
303
  ]
304
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
  return train_splits + dev_splits + test_splits
306
 
307
  def _generate_examples(self, files, local_extracted_archive):
 
77
  "test.other": {
78
  "test.other": _DL_URL + "test-other.tar.gz",
79
  }
80
+ "train.clean.100":{
81
+ "train.clean.100": _DL_URL + "train-clean-100.tar.gz",
82
+ }
83
+ "train.clean.360":{
84
+ "train.clean.360": _DL_URL + "train-clean-360.tar.gz",
85
+ }
86
+ "train.other.500":{
87
+ "train.other.500": _DL_URL + "train-other-500.tar.gz",
88
+ }
89
  }
90
 
91
 
 
310
  },
311
  ),
312
  ]
313
+ elif self.config.name == "train.clean.100":
314
+ train_splits = [
315
+ datasets.SplitGenerator(
316
+ name="train.clean.100",
317
+ gen_kwargs={
318
+ "local_extracted_archive": local_extracted_archive.get("train.clean.100"),
319
+ "files": dl_manager.iter_archive(archive_path["train.clean.100"]),
320
+ },
321
+ ),
322
+ ]
323
+ dev_splits = []
324
+ test_splits = []
325
+ elif self.config.name == "train.clean.100":
326
+ train_splits = [
327
+ datasets.SplitGenerator(
328
+ name="train.clean.100",
329
+ gen_kwargs={
330
+ "local_extracted_archive": local_extracted_archive.get("train.clean.100"),
331
+ "files": dl_manager.iter_archive(archive_path["train.clean.100"]),
332
+ },
333
+ ),
334
+ ]
335
+ dev_splits = []
336
+ test_splits = []
337
+ elif self.config.name == "train.clean.360":
338
+ train_splits = [
339
+ datasets.SplitGenerator(
340
+ name="train.clean.360",
341
+ gen_kwargs={
342
+ "local_extracted_archive": local_extracted_archive.get("train.clean.360"),
343
+ "files": dl_manager.iter_archive(archive_path["train.clean.360"]),
344
+ },
345
+ ),
346
+ ]
347
+ dev_splits = []
348
+ test_splits = []
349
+ elif self.config.name == "train.other.500":
350
+ train_splits = [
351
+ datasets.SplitGenerator(
352
+ name="train.other.500",
353
+ gen_kwargs={
354
+ "local_extracted_archive": local_extracted_archive.get("train.clean.500"),
355
+ "files": dl_manager.iter_archive(archive_path["train.clean.500"]),
356
+ },
357
+ ),
358
+ ]
359
+ dev_splits = []
360
+ test_splits = []
361
  return train_splits + dev_splits + test_splits
362
 
363
  def _generate_examples(self, files, local_extracted_archive):