Update taiga.py
Browse files
taiga.py
CHANGED
@@ -72,7 +72,7 @@ class Taiga(datasets.GeneratorBasedBuilder):
|
|
72 |
id_ = 0
|
73 |
for filepath in filepaths:
|
74 |
logger.info("generating examples from = %s", filepath)
|
75 |
-
with zipfile.ZipFile(
|
76 |
for filename in z.namelist():
|
77 |
if not os.path.isdir(filename) and '.txt' in filename.split('/') and len(filename.split('/')) > 2:
|
78 |
# read the file
|
|
|
72 |
id_ = 0
|
73 |
for filepath in filepaths:
|
74 |
logger.info("generating examples from = %s", filepath)
|
75 |
+
with zipfile.ZipFile(filepath) as z:
|
76 |
for filename in z.namelist():
|
77 |
if not os.path.isdir(filename) and '.txt' in filename.split('/') and len(filename.split('/')) > 2:
|
78 |
# read the file
|