Datasets:
Tasks:
Text Classification
Sub-tasks:
acceptability-classification
Languages:
Italian
ArXiv:
License:
Fix ex_fields
Browse files- itacola.py +2 -1
itacola.py
CHANGED
@@ -138,7 +138,8 @@ class ItaCola(datasets.GeneratorBasedBuilder):
|
|
138 |
ex_split = None
|
139 |
fields = row.strip().split("\t")
|
140 |
if len(fields) > 5:
|
141 |
-
|
|
|
142 |
if ex_split is None or ex_split.strip() == split:
|
143 |
yield id_, {
|
144 |
k:v.strip() for k,v in zip(features, fields)
|
|
|
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:
|
144 |
yield id_, {
|
145 |
k:v.strip() for k,v in zip(features, fields)
|