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

Method doc_to_target

test/general/lm_eval/tasks/qasper.py:132–136  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

130 )
131
132 def doc_to_target(self, doc):
133 answer = doc["answer"]
134 if isinstance(answer, list):
135 answer = ", ".join(answer)
136 return " " + answer
137
138 def training_docs(self):
139 for doc in self.dataset["train"]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected