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

Method doc_to_text

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

Source from the content-addressed store, hash-verified

453 return self.dataset["validation"]
454
455 def doc_to_text(self, doc):
456 return "Question 1: {}\nQuestion 2: {}\nQuestion: Do both questions ask the same thing?\nAnswer:".format(
457 doc["question1"],
458 doc["question2"],
459 )
460
461 def doc_to_target(self, doc):
462 return " {}".format(yesno(doc["label"]))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected