(self, doc)
| 122 | return self.dataset["validation"] |
| 123 | |
| 124 | def doc_to_text(self, doc): |
| 125 | return "{}\nQuestion: Is this sentence positive or negative?\nAnswer:".format( |
| 126 | general_detokenize(doc["sentence"]), |
| 127 | ) |
| 128 | |
| 129 | def doc_to_target(self, doc): |
| 130 | return " {}".format({1: "positive", 0: "negative"}[doc["label"]]) |
nothing calls this directly
no test coverage detected