danasone commited on
Commit
8403b88
1 Parent(s): 7d479e6

Update taiga.py

Browse files
Files changed (1) hide show
  1. taiga.py +1 -1
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(filehandle) 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
 
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