Commit 173b33a4 authored by thefazzer's avatar thefazzer
Browse files

Replace tab with spaces, formatting

parent 2c05f0e4
...@@ -72,7 +72,7 @@ class CommitmentBank(HFTask): ...@@ -72,7 +72,7 @@ class CommitmentBank(HFTask):
return "Given a premise and a hypothesis, classify whether the author of the premise is committed to the truth of the hypothesis. The three possible labels are true, false or neither." return "Given a premise and a hypothesis, classify whether the author of the premise is committed to the truth of the hypothesis. The three possible labels are true, false or neither."
def doc_to_text(self, doc): def doc_to_text(self, doc):
return "{}\nquestion:\t{}\ttrue, false or neither?\nanswer:".format( return "{}\nquestion: {} true, false or neither?\nanswer:".format(
doc["premise"], doc["premise"],
doc["hypothesis"], doc["hypothesis"],
) )
...@@ -102,7 +102,8 @@ class CommitmentBank(HFTask): ...@@ -102,7 +102,8 @@ class CommitmentBank(HFTask):
def higher_is_better(self): def higher_is_better(self):
return { return {
"acc": True "acc": True,
"f1": True
} }
def aggregation(self): def aggregation(self):
...@@ -242,7 +243,7 @@ class WordsInContext(HFTask): ...@@ -242,7 +243,7 @@ class WordsInContext(HFTask):
return True return True
def doc_to_text(self, doc): def doc_to_text(self, doc):
return "{}\n{}\nquestion\tIs the word '{}' used in the same way in the" \ return "{}\n{}\nQuestion: Is the word '{}' used in the same way in the" \
" two sentences above?\nanswer:".format( " two sentences above?\nanswer:".format(
doc["sentence1"], doc["sentence1"],
doc["sentence2"], doc["sentence2"],
......
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