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

Method doc_to_text

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

Source from the content-addressed store, hash-verified

68 return self.dataset["validation"]
69
70 def doc_to_text(self, doc):
71 return "{}\nQuestion: Does this sentence make sense?\nAnswer:".format(
72 doc["sentence"]
73 )
74
75 def should_decontaminate(self):
76 return True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected