gsarti commited on
Commit
c2a1a09
1 Parent(s): 269d62a

Fix len check

Browse files
Files changed (1) hide show
  1. itacola.py +1 -1
itacola.py CHANGED
@@ -137,7 +137,7 @@ class ItaCola(datasets.GeneratorBasedBuilder):
137
  continue
138
  ex_split = None
139
  fields = row.strip().split("\t")
140
- if len(fields) > 5:
141
  ex_split = fields[-1]
142
  fields = fields[:-1],
143
  if ex_split is None or ex_split.strip() == split:
 
137
  continue
138
  ex_split = None
139
  fields = row.strip().split("\t")
140
+ if len(fields) < 6:
141
  ex_split = fields[-1]
142
  fields = fields[:-1],
143
  if ex_split is None or ex_split.strip() == split: