Commit 440216db authored by thomasw21's avatar thomasw21
Browse files

Questions in BoolQ don't have interrogation punctuation at the end

parent f16e8b5c
......@@ -13,7 +13,7 @@ from ..utils import general_detokenize
class BoolQ(HFTask):
VERSION = 0
VERSION = 1
DATASET_PATH = "super_glue"
DATASET_NAME = "boolq"
......@@ -31,7 +31,7 @@ class BoolQ(HFTask):
return "Read the following passages and answer each question with a yes or a no."
def doc_to_text(self, doc):
return f"{doc['passage']}\nQuestion: {doc['question']}\nAnswer:"
return f"{doc['passage']}\nQuestion: {doc['question']}?\nAnswer:"
def doc_to_target(self, doc):
return " " + yesno(doc['label'])
......
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