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

Method format_answer

test/general/lm_eval/tasks/superglue.py:251–253  ·  view source on GitHub ↗
(answer, label)

Source from the content-addressed store, hash-verified

249
250 @staticmethod
251 def format_answer(answer, label):
252 label_str = "yes" if label else "no"
253 return f"{answer}\nIs the answer correct? {label_str}"
254
255 def construct_requests(self, doc, ctx):
256 true_choice = self.format_answer(answer=doc["answer"], label=True)

Callers 2

doc_to_targetMethod · 0.95
construct_requestsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected