Unverified Commit f9750990 authored by Leo Gao's avatar Leo Gao Committed by GitHub
Browse files

Remove stray space

parent 79c9b68a
...@@ -55,7 +55,7 @@ class CoQA(Task): ...@@ -55,7 +55,7 @@ class CoQA(Task):
doc_text = doc["story"] + '\n\n' doc_text = doc["story"] + '\n\n'
for (q, a) in zip_longest(doc["questions"], doc["answers"][:-1]): # omit target answer ai for (q, a) in zip_longest(doc["questions"], doc["answers"][:-1]): # omit target answer ai
question = f"Q: {q['input_text']}" + '\n\n' question = f"Q: {q['input_text']}" + '\n\n'
answer = f"A: {a['input_text']}" + '\n\n' if a is not None else "A: " answer = f"A: {a['input_text']}" + '\n\n' if a is not None else "A:"
doc_text += question + answer doc_text += question + answer
print(doc_text) print(doc_text)
return doc_text return doc_text
...@@ -163,4 +163,4 @@ class CoQA(Task): ...@@ -163,4 +163,4 @@ class CoQA(Task):
return { return {
"f1": mean, "f1": mean,
"em": mean, "em": mean,
} }
\ 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