(self, doc)
| 63 | ) |
| 64 | |
| 65 | def _process_doc(self, doc): |
| 66 | out_doc = { |
| 67 | "query": f"{doc['context']}\nQuestion: {doc['ex_question']}\nAnswer:", |
| 68 | "choices": [doc["A"], doc["B"], doc["C"], doc["D"]], |
| 69 | "gold": doc["label"], |
| 70 | } |
| 71 | return out_doc |
| 72 | |
| 73 | def doc_to_text(self, doc): |
| 74 | return doc["query"] |
nothing calls this directly
no outgoing calls
no test coverage detected