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

Method doc_to_text

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

Source from the content-addressed store, hash-verified

178 return self.dataset["test_matched"]
179
180 def doc_to_text(self, doc):
181 return "{}\nQuestion: {} True, False or Neither?\nAnswer:".format(
182 doc["premise"],
183 doc["hypothesis"].strip()
184 + ("" if doc["hypothesis"].strip().endswith(".") else "."),
185 )
186
187 def doc_to_target(self, doc):
188 # True = entailment

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected