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

headqa: maintain backwards compatibility

parent 5855f482
...@@ -132,6 +132,7 @@ TASK_REGISTRY = { ...@@ -132,6 +132,7 @@ TASK_REGISTRY = {
"squad2": squad.SQuAD2, "squad2": squad.SQuAD2,
"race": race.RACE, "race": race.RACE,
# "naturalqs": naturalqs.NaturalQs, # not implemented yet # "naturalqs": naturalqs.NaturalQs, # not implemented yet
"headqa": headqa.HeadQAEsDeprecated, # for backwards compat - headqa used to default to es
"headqa_es": headqa.HeadQAEs, "headqa_es": headqa.HeadQAEs,
"headqa_en": headqa.HeadQAEn, "headqa_en": headqa.HeadQAEn,
"mathqa": mathqa.MathQA, "mathqa": mathqa.MathQA,
......
...@@ -35,4 +35,10 @@ class HeadQAEn(HeadQABase): ...@@ -35,4 +35,10 @@ class HeadQAEn(HeadQABase):
DATASET_NAME = "en" DATASET_NAME = "en"
class HeadQAEs(HeadQABase): class HeadQAEs(HeadQABase):
DATASET_NAME = "es" DATASET_NAME = "es"
\ No newline at end of file
# for backwards compatibility
class HeadQAEsDeprecated(HeadQABase):
DATASET_NAME = "es"
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.")
\ No newline at end of file
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