(self, doc)
| 50 | return map(self._process_doc, self.dataset["validation"]) |
| 51 | |
| 52 | def _process_doc(self, doc): |
| 53 | out_doc = { |
| 54 | "goal": doc["goal"], |
| 55 | "choices": [doc["sol1"], doc["sol2"]], |
| 56 | "gold": doc["label"], |
| 57 | } |
| 58 | return out_doc |
| 59 | |
| 60 | def doc_to_text(self, doc): |
| 61 | return "Question: " + doc["goal"] + "\nAnswer:" |
nothing calls this directly
no outgoing calls
no test coverage detected