MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / _process_doc

Method _process_doc

test/general/lm_eval/tasks/prost.py:65–71  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

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"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected