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

Method doc_to_text

test/general/lm_eval/tasks/superglue.py:113–117  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

111 return self.dataset["validation"]
112
113 def doc_to_text(self, doc):
114 return "{}\nQuestion: {}. True, False or Neither?\nAnswer:".format(
115 doc["premise"],
116 doc["hypothesis"],
117 )
118
119 def doc_to_target(self, doc):
120 # True = entailment

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected