(self, doc)
| 180 | return self.dataset["validation"] |
| 181 | |
| 182 | def doc_to_text(self, doc): |
| 183 | # Drop the period |
| 184 | connector = { |
| 185 | "cause": "because", |
| 186 | "effect": "therefore", |
| 187 | }[doc["question"]] |
| 188 | return doc["premise"].strip()[:-1] + f" {connector}" |
| 189 | |
| 190 | def doc_to_target(self, doc): |
| 191 | correct_choice = doc["choice1"] if doc["label"] == 0 else doc["choice2"] |
nothing calls this directly
no outgoing calls
no test coverage detected