Datasets:

ArXiv:
License:
Anjaly commited on
Commit
83556fc
·
1 Parent(s): 0b2b5e6

supporting audio zip files

Browse files
Files changed (1) hide show
  1. snow-mountain.py +4 -3
snow-mountain.py CHANGED
@@ -139,9 +139,10 @@ class Test(datasets.GeneratorBasedBuilder):
139
  zip_url = '/'.join(row["path"].split('/')[:-1])+'.zip'
140
  archive_path = dl_manager.download(zip_url)
141
  for path, file in dl_manager.iter_archive(archive_path):
142
- if file in str(row["path"]):
143
- content = file.read()
144
- break
 
145
  yield key, {
146
  "sentence": row["sentence"],
147
  "path": row["path"],
 
139
  zip_url = '/'.join(row["path"].split('/')[:-1])+'.zip'
140
  archive_path = dl_manager.download(zip_url)
141
  for path, file in dl_manager.iter_archive(archive_path):
142
+ content = path.read()
143
+ # if file in str(row["path"]):
144
+ # content = file.read()
145
+ # break
146
  yield key, {
147
  "sentence": row["sentence"],
148
  "path": row["path"],