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

Method _process_doc

test/general/lm_eval/tasks/hendrycks_math.py:49–51  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

47 return map(self._process_doc, self.dataset["test"])
48
49 def _process_doc(self, doc):
50 doc["answer"] = self.remove_boxed(self.last_boxed_only_string(doc["solution"]))
51 return doc
52
53 def doc_to_text(self, doc):
54 return "Problem: " + doc["problem"] + "\nAnswer:"

Callers

nothing calls this directly

Calls 2

remove_boxedMethod · 0.95

Tested by

no test coverage detected