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

Method doc_to_text

test/general/lm_eval/tasks/mgsm.py:79–83  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

77 return self.dataset["test"]
78
79 def doc_to_text(self, doc):
80 if doc["answer"] is not None:
81 return doc["question"] + "\n" + self.ANSWER
82 else:
83 return self.QUESTION + " " + doc["question"] + "\n" + self.ANSWER
84
85 def doc_to_target(self, doc):
86 if doc["answer"] is not None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected