Commit 171f2924 authored by Anish Thite's avatar Anish Thite
Browse files

add no target for triviaqa

parent c9f3b113
......@@ -38,8 +38,10 @@ class TriviaQA(Dataset):
pass
def doc_to_text(self, doc, include_target=True):
return ''.join(['Q: ', doc['Question'], '\n\n','A: ', doc['Answer']['Aliases'][0]])
if include_target:
return ''.join(['Q: ', doc['Question'], '\n\n','A: ', doc['Answer']['Aliases'][0]])
else:
return ''.join(['Q: ', doc['Question'], '\n\n','A: '])
def evaluate(self, docs, lm):
pass
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