Unverified Commit 2338188f authored by Stella Biderman's avatar Stella Biderman Committed by GitHub
Browse files

Merge pull request #41 from zphang/copa_update

Update COPA cause/effect
parents 3d5d794a d5893cdc
...@@ -94,7 +94,11 @@ class Copa(HFTask): ...@@ -94,7 +94,11 @@ class Copa(HFTask):
def doc_to_text(self, doc, include_target=True): def doc_to_text(self, doc, include_target=True):
# Drop the period # Drop the period
text = doc["premise"].strip()[:-1] + " because " connector = {
"cause": "because",
"effect": "therefore",
}[doc["question"]]
text = doc["premise"].strip()[:-1] + f" {connector} "
if include_target: if include_target:
correct_choice = doc["choice1"] if doc["label"] == 0 else doc["choice2"] correct_choice = doc["choice1"] if doc["label"] == 0 else doc["choice2"]
# Connect the sentences # Connect the sentences
......
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