Datasets:
ArXiv:
License:
supporting audio zip files
Browse files- 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 |
-
|
143 |
-
|
144 |
-
|
|
|
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"],
|