(self, doc)
| 48 | return map(self._process_doc, self.dataset["validation"]) |
| 49 | |
| 50 | def _process_doc(self, doc): |
| 51 | out_doc = { |
| 52 | "query": doc["startphrase"], |
| 53 | "choices": [doc["ending0"], doc["ending1"], doc["ending2"], doc["ending3"]], |
| 54 | "gold": int(doc["label"]), |
| 55 | } |
| 56 | return out_doc |
| 57 | |
| 58 | def doc_to_text(self, doc): |
| 59 | return doc["query"] |
nothing calls this directly
no outgoing calls
no test coverage detected