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

Method doc_to_target

test/general/lm_eval/tasks/scrolls.py:197–198  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

195 self.dataset = self.dataset.filter(_filter, num_proc=self.PRUNE_NUM_PROC)
196
197 def doc_to_target(self, doc):
198 return " " + ", ".join(doc["outputs"])
199
200 def doc_to_text(self, doc):
201 return f"{doc['text']}\n\nQuestion: {doc['question']}\nAnswer:"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected