Datasets:
Robin Kurtz
commited on
Commit
·
5972baf
1
Parent(s):
376fcc8
fix labels
Browse files- overlim.py +2 -2
overlim.py
CHANGED
@@ -425,8 +425,8 @@ class OverLim(datasets.GeneratorBasedBuilder):
|
|
425 |
def _info(self):
|
426 |
features = {feature: datasets.Value("string") for feature in self.config.features if feature != "label"}
|
427 |
if self.config.label_classes:
|
428 |
-
if self.config.
|
429 |
-
features["label"] = datasets.
|
430 |
else:
|
431 |
features["label"] = datasets.features.ClassLabel(names=self.config.label_classes)
|
432 |
else:
|
|
|
425 |
def _info(self):
|
426 |
features = {feature: datasets.Value("string") for feature in self.config.features if feature != "label"}
|
427 |
if self.config.label_classes:
|
428 |
+
if self.config.task_name in ["cb", "mnli", "qnli", "rte"]:
|
429 |
+
features["label"] = datasets.Value("string")
|
430 |
else:
|
431 |
features["label"] = datasets.features.ClassLabel(names=self.config.label_classes)
|
432 |
else:
|