(self, doc)
| 58 | return [] |
| 59 | |
| 60 | def _process_doc(self, doc): |
| 61 | return { |
| 62 | "source": doc["source"], |
| 63 | "query": doc["stem"].split(" ")[:2], |
| 64 | "choices": [ |
| 65 | "{} is to {}".format(*c.split(" ")[:2]) for c in doc["choices"] |
| 66 | ], |
| 67 | "gold": ["a", "b", "c", "d", "e"].index(doc["solution"].strip()), |
| 68 | } |
| 69 | |
| 70 | def doc_to_text(self, doc): |
| 71 | return "{} is to {} as".format(*doc["query"]) |
nothing calls this directly
no outgoing calls
no test coverage detected