Datasets:
Upload anli.py
Browse files
anli.py
CHANGED
@@ -45,13 +45,6 @@ ANLI is much more difficult than its predecessors including SNLI and MNLI.
|
|
45 |
It contains three rounds. Each round has train/dev/test splits.
|
46 |
"""
|
47 |
|
48 |
-
stdnli_label = {
|
49 |
-
"e": "entailment",
|
50 |
-
"n": "neutral",
|
51 |
-
"c": "contradiction",
|
52 |
-
}
|
53 |
-
|
54 |
-
|
55 |
class ANLIConfig(datasets.BuilderConfig):
|
56 |
"""BuilderConfig for ANLI."""
|
57 |
|
@@ -132,6 +125,6 @@ class ANLI(datasets.GeneratorBasedBuilder):
|
|
132 |
"uid": item["uid"],
|
133 |
"premise": item["premise"],
|
134 |
"hypothesis": item["hypothesis"],
|
135 |
-
"label":
|
136 |
"reason": reason_text,
|
137 |
}
|
|
|
45 |
It contains three rounds. Each round has train/dev/test splits.
|
46 |
"""
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
class ANLIConfig(datasets.BuilderConfig):
|
49 |
"""BuilderConfig for ANLI."""
|
50 |
|
|
|
125 |
"uid": item["uid"],
|
126 |
"premise": item["premise"],
|
127 |
"hypothesis": item["hypothesis"],
|
128 |
+
"label": item["label"],
|
129 |
"reason": reason_text,
|
130 |
}
|