"official/vision/dataloaders/decoder.py" did not exist on "9d1a6927c6eb30312834dd7c63ad8a307c547b8d"
Commit 2d6102c4 authored by Leo Gao's avatar Leo Gao
Browse files

Fix coverage again again again again

parent 2708ae4c
...@@ -45,7 +45,7 @@ TASK_REGISTRY = { ...@@ -45,7 +45,7 @@ TASK_REGISTRY = {
"lambada": lambada.LAMBADA, "lambada": lambada.LAMBADA,
"piqa": piqa.PiQA, "piqa": piqa.PiQA,
"triviaqa": triviaqa.TriviaQA, #"triviaqa": triviaqa.TriviaQA,
# "arc_easy": arc.ARCEasy, # not implemented yet # "arc_easy": arc.ARCEasy, # not implemented yet
# "arc_challenge": arc.ARCChallenge, # not implemented yet # "arc_challenge": arc.ARCChallenge, # not implemented yet
# "quac": quac.QuAC, # not implemented yet # "quac": quac.QuAC, # not implemented yet
......
...@@ -3,6 +3,10 @@ from itertools import islice ...@@ -3,6 +3,10 @@ from itertools import islice
import random import random
class NaturalQs(HFTask): class NaturalQs(HFTask):
# TODO: naturalqs has a *really* large train set that huggingface just
# automatically downloads even if you dont use it. we should try and only
# download the val set and not even bother with the train set.
DATASET_PATH = "natural_questions" DATASET_PATH = "natural_questions"
DATASET_NAME = None DATASET_NAME = None
......
...@@ -21,7 +21,7 @@ class TriviaQA(Dataset): ...@@ -21,7 +21,7 @@ class TriviaQA(Dataset):
return True return True
def has_test_docs(self): def has_test_docs(self):
return True return False
def training_docs(self): def training_docs(self):
return json.load(open('data/triviaqa/triviaqa-unfiltered/unfiltered-web-train.json'))['Data'] return json.load(open('data/triviaqa/triviaqa-unfiltered/unfiltered-web-train.json'))['Data']
......
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