Commit 25131aa7 authored by Jason Phang's avatar Jason Phang
Browse files

mnli_mismatched

parent 00abc99a
......@@ -15,6 +15,7 @@ TASK_REGISTRY = {
# GLUE
"cola": glue.CoLA,
"mnli": glue.MNLI,
"mnli_mismatched": glue.MNLIMismatched,
"mrpc": glue.MRPC,
"rte": glue.RTE,
"qnli": glue.QNLI,
......
......@@ -114,6 +114,17 @@ class MNLI(HFTask):
return simple_accuracy_metric(preds=preds, golds=golds)
class MNLIMismatched(MNLI):
def validation_docs(self):
if self.has_validation_docs():
return self.data["validation_mismatched"]
def test_docs(self):
if self.has_test_docs():
return self.data["test_mismatched"]
class MRPC(HFTask):
DATASET_PATH = "glue"
DATASET_NAME = "mrpc"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment