gsarti commited on
Commit
37b1c00
1 Parent(s): b250cc4

Fix fields

Browse files
Files changed (1) hide show
  1. itacola.py +2 -2
itacola.py CHANGED
@@ -139,8 +139,8 @@ class ItaCola(datasets.GeneratorBasedBuilder):
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:
144
  yield id_, {
145
- k:v.strip() for k,v in zip(features, fields[0])
146
  }
 
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:
144
  yield id_, {
145
+ k:v.strip() for k,v in zip(features, fields)
146
  }