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

Add missing space in MultiRC

parent 42df113c
...@@ -218,7 +218,7 @@ class MultiRC(HFTask): ...@@ -218,7 +218,7 @@ class MultiRC(HFTask):
return f"{doc['paragraph']}\nQuestion: {doc['question']}\nAnswer:" return f"{doc['paragraph']}\nQuestion: {doc['question']}\nAnswer:"
def doc_to_target(self, doc): def doc_to_target(self, doc):
return self.format_answer(answer=doc["answer"], label=doc["label"]) return " " + self.format_answer(answer=doc["answer"], label=doc["label"])
@staticmethod @staticmethod
def format_answer(answer, label): def format_answer(answer, 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