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

Method doc_to_text

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

Source from the content-addressed store, hash-verified

242 return self.dataset["validation"]
243
244 def doc_to_text(self, doc):
245 return f"{doc['paragraph']}\nQuestion: {doc['question']}\nAnswer:"
246
247 def doc_to_target(self, doc):
248 return " " + self.format_answer(answer=doc["answer"], label=doc["label"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected