Datasets:
Update probability_words_nli.py
Browse files- probability_words_nli.py +2 -0
probability_words_nli.py
CHANGED
@@ -79,6 +79,8 @@ class WepProbe(datasets.GeneratorBasedBuilder):
|
|
79 |
|
80 |
def _info(self):
|
81 |
features = {text_feature: datasets.Value("string") for text_feature in self.config.text_features.keys()}
|
|
|
|
|
82 |
if self.config.label_classes:
|
83 |
features["label"] = datasets.features.ClassLabel(names=self.config.label_classes)
|
84 |
else:
|
|
|
79 |
|
80 |
def _info(self):
|
81 |
features = {text_feature: datasets.Value("string") for text_feature in self.config.text_features.keys()}
|
82 |
+
if self.config.name=='usnli':
|
83 |
+
del features['problog']
|
84 |
if self.config.label_classes:
|
85 |
features["label"] = datasets.features.ClassLabel(names=self.config.label_classes)
|
86 |
else:
|