Datasets:

Faton Rekathati commited on
Commit
f4fb971
1 Parent(s): e9e76f8

Keep meta_paths as dict in _generate_examples

Browse files
Files changed (1) hide show
  1. rixvox.py +1 -7
rixvox.py CHANGED
@@ -119,12 +119,6 @@ class Rixvox(datasets.GeneratorBasedBuilder):
119
  # Choose single split
120
  meta_urls = {self.config.name: meta_urls[self.config.name]}
121
 
122
- try:
123
- print(f"is_streaming: {dl_manager.is_streaming}")
124
- print(f"streaming: {dl_manager.streaming}")
125
- except:
126
- pass
127
-
128
  archive_paths = dl_manager.download(archive_urls)
129
  local_extracted_archives = dl_manager.extract(archive_paths) if not dl_manager.is_streaming else None
130
  meta_paths = dl_manager.download(meta_urls)
@@ -157,7 +151,7 @@ class Rixvox(datasets.GeneratorBasedBuilder):
157
  "archive_iters": [
158
  dl_manager.iter_archive(path) for path in archive_paths.get(self.config.name)
159
  ],
160
- "meta_paths": meta_paths[self.config.name],
161
  },
162
  ),
163
  )
 
119
  # Choose single split
120
  meta_urls = {self.config.name: meta_urls[self.config.name]}
121
 
 
 
 
 
 
 
122
  archive_paths = dl_manager.download(archive_urls)
123
  local_extracted_archives = dl_manager.extract(archive_paths) if not dl_manager.is_streaming else None
124
  meta_paths = dl_manager.download(meta_urls)
 
151
  "archive_iters": [
152
  dl_manager.iter_archive(path) for path in archive_paths.get(self.config.name)
153
  ],
154
+ "meta_paths": meta_paths, # meta_paths is a dict with one key, the split name
155
  },
156
  ),
157
  )