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

Method _process_doc

test/general/lm_eval/tasks/sat.py:60–68  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected