Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
natural-language-inference
Size:
100K - 1M
Tags:
quality-estimation
License:
fix class
Browse files- ik-nlp-22_transqe.py +1 -2
ik-nlp-22_transqe.py
CHANGED
@@ -71,7 +71,7 @@ class IkNlp22ExpNLIConfig(datasets.GeneratorBasedBuilder):
|
|
71 |
"premise_nl": datasets.Value("string"),
|
72 |
"hypothesis_en": datasets.Value("string"),
|
73 |
"hypothesis_nl": datasets.Value("string"),
|
74 |
-
"label": datasets.
|
75 |
"explanation_1_en": datasets.Value("string"),
|
76 |
"explanation_1_nl": datasets.Value("string"),
|
77 |
"explanation_2_en": datasets.Value("string"),
|
@@ -112,7 +112,6 @@ class IkNlp22ExpNLIConfig(datasets.GeneratorBasedBuilder):
|
|
112 |
with open(filepath, encoding="utf-8") as f:
|
113 |
reader = csv.DictReader(f, dialect="tsv")
|
114 |
for i, row in enumerate(reader):
|
115 |
-
print(row)
|
116 |
yield i, {
|
117 |
"premise_en": row["premise_en"],
|
118 |
"premise_nl": row["premise_nl"],
|
|
|
71 |
"premise_nl": datasets.Value("string"),
|
72 |
"hypothesis_en": datasets.Value("string"),
|
73 |
"hypothesis_nl": datasets.Value("string"),
|
74 |
+
"label": datasets.features.ClassLabel(names=["entailment", "neutral", "contradiction"]),
|
75 |
"explanation_1_en": datasets.Value("string"),
|
76 |
"explanation_1_nl": datasets.Value("string"),
|
77 |
"explanation_2_en": datasets.Value("string"),
|
|
|
112 |
with open(filepath, encoding="utf-8") as f:
|
113 |
reader = csv.DictReader(f, dialect="tsv")
|
114 |
for i, row in enumerate(reader):
|
|
|
115 |
yield i, {
|
116 |
"premise_en": row["premise_en"],
|
117 |
"premise_nl": row["premise_nl"],
|