andreagasparini commited on
Commit
06305e4
1 Parent(s): ed2f49e

Update librispeech_train_clean_only.py

Browse files
Files changed (1) hide show
  1. librispeech_train_clean_only.py +5 -1
librispeech_train_clean_only.py CHANGED
@@ -49,6 +49,10 @@ _DL_URLS = {
49
  "train.100": _DL_URL + "train-clean-100.tar.gz",
50
  "train.360": _DL_URL + "train-clean-360.tar.gz",
51
  },
 
 
 
 
52
  }
53
 
54
 
@@ -98,7 +102,7 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
98
  # (Optional) In non-streaming mode, we can extract the archive locally to have actual local audio files:
99
  local_extracted_archive = dl_manager.extract(archive_path) if not dl_manager.is_streaming else {}
100
 
101
- if self.config.name == "clean":
102
  train_splits = [
103
  datasets.SplitGenerator(
104
  name="train.100",
 
49
  "train.100": _DL_URL + "train-clean-100.tar.gz",
50
  "train.360": _DL_URL + "train-clean-360.tar.gz",
51
  },
52
+ "all": {
53
+ "train.100": _DL_URL + "train-clean-100.tar.gz",
54
+ "train.360": _DL_URL + "train-clean-360.tar.gz",
55
+ },
56
  }
57
 
58
 
 
102
  # (Optional) In non-streaming mode, we can extract the archive locally to have actual local audio files:
103
  local_extracted_archive = dl_manager.extract(archive_path) if not dl_manager.is_streaming else {}
104
 
105
+ if self.config.name == "clean" or self.config.name == "all":
106
  train_splits = [
107
  datasets.SplitGenerator(
108
  name="train.100",