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

Method doc_to_target

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

Source from the content-addressed store, hash-verified

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"])
249
250 @staticmethod
251 def format_answer(answer, label):

Callers

nothing calls this directly

Calls 1

format_answerMethod · 0.95

Tested by

no test coverage detected