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

Method doc_to_text

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

Source from the content-addressed store, hash-verified

296 return self.dataset["validation"]
297
298 def doc_to_text(self, doc):
299 return "{}\nQuestion: {} True or False?\nAnswer:".format(
300 doc["sentence1"],
301 doc["sentence2"],
302 )
303
304 def doc_to_target(self, doc):
305 # True = entailment

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected