Datasets:
Tasks:
Text Classification
Sub-tasks:
acceptability-classification
Languages:
English
Size:
10K<n<100K
Tags:
cola
License:
Update blimp_classification.py
Browse files- blimp_classification.py +2 -2
blimp_classification.py
CHANGED
|
@@ -168,7 +168,7 @@ class Blimp(datasets.GeneratorBasedBuilder):
|
|
| 168 |
if label_classes and label not in label_classes:
|
| 169 |
print(row)
|
| 170 |
continue
|
| 171 |
-
example["label"] =
|
| 172 |
else:
|
| 173 |
-
example["label"] =
|
| 174 |
yield example["idx"], example
|
|
|
|
| 168 |
if label_classes and label not in label_classes:
|
| 169 |
print(row)
|
| 170 |
continue
|
| 171 |
+
example["label"] =label
|
| 172 |
else:
|
| 173 |
+
example["label"] = -1
|
| 174 |
yield example["idx"], example
|