Datasets:
ArXiv:
License:
supporting audio zip files
Browse files- snow-mountain.py +2 -2
snow-mountain.py
CHANGED
@@ -139,8 +139,8 @@ 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
|
143 |
-
content =
|
144 |
break
|
145 |
yield key, {
|
146 |
"sentence": row["sentence"],
|
|
|
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"],
|