Datasets:

Modalities:
Audio
Text
ArXiv:
Libraries:
Datasets
License:
polinaeterna HF staff commited on
Commit
346aa1c
1 Parent(s): bf0fd87

fix streaming

Browse files
Files changed (1) hide show
  1. voxpopuli.py +3 -3
voxpopuli.py CHANGED
@@ -126,9 +126,9 @@ class Voxpopuli(datasets.GeneratorBasedBuilder):
126
  local_extracted_audio_paths = (
127
  dl_manager.extract(audio_paths) if not dl_manager.is_streaming else
128
  {
129
- "train": [None] * len(audio_paths["train"]),
130
- "dev": [None] * len(audio_paths["dev"]),
131
- "test": [None] * len(audio_paths["test"]),
132
  }
133
  )
134
 
 
126
  local_extracted_audio_paths = (
127
  dl_manager.extract(audio_paths) if not dl_manager.is_streaming else
128
  {
129
+ "train": {lang: [None] * len(audio_paths["train"]) for lang in self.config.languages},
130
+ "dev": {lang: [None] * len(audio_paths["dev"]) for lang in self.config.languages},
131
+ "test": {lang: [None] * len(audio_paths["test"]) for lang in self.config.languages},
132
  }
133
  )
134