(self, doc)
| 401 | return self.dataset["validation"] |
| 402 | |
| 403 | def doc_to_text(self, doc): |
| 404 | return "Sentence 1: {}\nSentence 2: {}\nQuestion: Do both sentences mean the same thing?\nAnswer:".format( |
| 405 | general_detokenize(doc["sentence1"]), |
| 406 | general_detokenize(doc["sentence2"]), |
| 407 | ) |
| 408 | |
| 409 | def doc_to_target(self, doc): |
| 410 | return " {}".format(yesno(doc["label"])) |
nothing calls this directly
no test coverage detected