Datasets:

Faton Rekathati commited on
Commit
cd84d81
·
1 Parent(s): caec8cd

numeric key instead of path

Browse files
Files changed (1) hide show
  1. rixvox.py +6 -3
rixvox.py CHANGED
@@ -165,6 +165,7 @@ class Rixvox(datasets.GeneratorBasedBuilder):
165
  archive_iters,
166
  meta_paths,
167
  ):
 
168
 
169
  if self.config.name == "all":
170
  data = []
@@ -191,6 +192,8 @@ class Rixvox(datasets.GeneratorBasedBuilder):
191
  result["audio"] = {"path": path, "bytes": file.read()}
192
  result["path"] = path if local_extracted_archive_paths else filename
193
 
194
- print(result)
195
- print(path)
196
- yield path, result
 
 
 
165
  archive_iters,
166
  meta_paths,
167
  ):
168
+ key = 0
169
 
170
  if self.config.name == "all":
171
  data = []
 
192
  result["audio"] = {"path": path, "bytes": file.read()}
193
  result["path"] = path if local_extracted_archive_paths else filename
194
 
195
+ if "filename" in result:
196
+ print(result["filename"])
197
+
198
+ yield key, result
199
+ key += 1