@@ -25,9 +24,19 @@ class HeadQA(HFTask, MultipleChoiceTask):
}
returnout_doc
deffewshot_description(self):
# TODO: figure out description
return""
defdoc_to_text(self,doc):
returndoc["query"]
classHeadQAEn(HeadQABase):
DATASET_NAME="en"
classHeadQAEs(HeadQABase):
DATASET_NAME="es"
# for backwards compatibility
classHeadQAEsDeprecated(HeadQABase):
DATASET_NAME="es"
def__init__(self):
super().__init__()
print("WARNING: headqa is deprecated. Please use headqa_es or headqa_en instead. See https://github.com/EleutherAI/lm-evaluation-harness/pull/240 for more info.")
raiseNotImplementedError("QuAC has no test docs.")
deffewshot_description(self):
# TODO: figure out fewshot description
desc="TITLE: Title of the context passage - subtitle of the passage\nPARAGRAPH: Passage describing the relevant information for answering questions.\n\nQ: Text of a question.\n\nA: Answer to the question, based on the passage. If it cannot be answered based on the passage, write CANNOTANSWER"