"projects/vscode:/vscode.git/clone" did not exist on "52fe5baa8649309a5f0cd78685e34c9871201650"
Commit ea3fd79b authored by thomasw21's avatar thomasw21
Browse files

Fix CB

parent f16e8b5c
......@@ -93,14 +93,14 @@ class CommitmentBank(HFTask):
# True = entailment
# False = contradiction
# Neither = neutral
return " {}".format({0: "True", 1: "Neither", 2: "False"}[doc["label"]])
return " {}".format({0: "True", 1: "False", 2: "Neither"}[doc["label"]])
def construct_requests(self, doc, ctx):
ll_true, _ = rf.loglikelihood(ctx, ' True')
ll_neither, _ = rf.loglikelihood(ctx, ' Neither')
ll_false, _ = rf.loglikelihood(ctx, ' False')
ll_neither, _ = rf.loglikelihood(ctx, ' Neither')
return ll_true, ll_neither, ll_false
return ll_true, ll_false, ll_neither
def process_results(self, doc, results):
gold = 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