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

Method doc_to_text

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

Source from the content-addressed store, hash-verified

347 return self.dataset["validation"]
348
349 def doc_to_text(self, doc):
350 return "{}\nQuestion: {} True or False?\nAnswer:".format(
351 doc["sentence1"],
352 doc["sentence2"],
353 )
354
355 def doc_to_target(self, doc):
356 # 0 = entailment

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected