Commit fa7b9643 authored by Leo Gao's avatar Leo Gao
Browse files

Mark GLUE and SuperGLUE tasks without labelled test docs as not having test docs at all

parent 1a05b8cf
...@@ -20,7 +20,7 @@ class CoLA(HFTask): ...@@ -20,7 +20,7 @@ class CoLA(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def fewshot_description(self): def fewshot_description(self):
# TODO # TODO
...@@ -67,7 +67,7 @@ class SST(HFTask): ...@@ -67,7 +67,7 @@ class SST(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def fewshot_description(self): def fewshot_description(self):
return "Indicate if the sentiment of each sentence is positive or negative." return "Indicate if the sentiment of each sentence is positive or negative."
...@@ -118,7 +118,7 @@ class MNLI(HFTask): ...@@ -118,7 +118,7 @@ class MNLI(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def validation_docs(self): def validation_docs(self):
if self.has_validation_docs(): if self.has_validation_docs():
...@@ -186,7 +186,7 @@ class QNLI(HFTask): ...@@ -186,7 +186,7 @@ class QNLI(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def doc_to_text(self, doc): def doc_to_text(self, doc):
return "{}\n{}\nQuestion: Does this response answer the question?\nAnswer:".format( return "{}\n{}\nQuestion: Does this response answer the question?\nAnswer:".format(
...@@ -234,7 +234,7 @@ class WNLI(HFTask): ...@@ -234,7 +234,7 @@ class WNLI(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def doc_to_text(self, doc): def doc_to_text(self, doc):
return "{}\nQuestion: {} True, False or Neither?\nAnswer:".format( return "{}\nQuestion: {} True, False or Neither?\nAnswer:".format(
...@@ -283,7 +283,7 @@ class RTE(HFTask): ...@@ -283,7 +283,7 @@ class RTE(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def doc_to_text(self, doc): def doc_to_text(self, doc):
return "{}\nQuestion: {} True or False?\nAnswer:".format( return "{}\nQuestion: {} True or False?\nAnswer:".format(
......
...@@ -23,7 +23,7 @@ class BoolQ(HFTask): ...@@ -23,7 +23,7 @@ class BoolQ(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def fewshot_description(self): def fewshot_description(self):
# TODO: figure out actual description # TODO: figure out actual description
...@@ -74,7 +74,7 @@ class CommitmentBank(HFTask): ...@@ -74,7 +74,7 @@ class CommitmentBank(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def fewshot_description(self): def fewshot_description(self):
# TODO: figure out actual description # TODO: figure out actual description
...@@ -145,7 +145,7 @@ class Copa(HFTask): ...@@ -145,7 +145,7 @@ class Copa(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def fewshot_description(self): def fewshot_description(self):
# TODO: figure out actual description # TODO: figure out actual description
...@@ -209,7 +209,7 @@ class MultiRC(HFTask): ...@@ -209,7 +209,7 @@ class MultiRC(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def fewshot_description(self): def fewshot_description(self):
# TODO: figure out actual description # TODO: figure out actual description
...@@ -355,7 +355,7 @@ class WordsInContext(HFTask): ...@@ -355,7 +355,7 @@ class WordsInContext(HFTask):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def fewshot_description(self): def fewshot_description(self):
# TODO: figure out actual description # TODO: figure out actual description
......
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