(self, doc)
| 385 | CHOICES = ["Not mentioned", "Entailment", "Contradiction"] |
| 386 | |
| 387 | def _process_doc(self, doc): |
| 388 | doc = _process_doc_prepended_question(doc) |
| 389 | doc["choices"] = ContractNLI.CHOICES |
| 390 | doc["gold"] = ContractNLI.CHOICES.index(doc["outputs"][0]) |
| 391 | return [doc] |
| 392 | |
| 393 | def doc_to_text(self, doc): |
| 394 | return f"{doc['text']}\n\nHypothesis: {doc['question']}\nConclusion:" |
nothing calls this directly
no test coverage detected