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

Method doc_to_text

test/general/lm_eval/tasks/glue.py:245–251  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

243 return self.dataset["validation"]
244
245 def doc_to_text(self, doc):
246 return (
247 "{}\n{}\nQuestion: Does this response answer the question?\nAnswer:".format(
248 doc["question"],
249 doc["sentence"],
250 )
251 )
252
253 def doc_to_target(self, doc):
254 # True = entailment

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected