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

Method doc_to_target

test/general/lm_eval/tasks/mc_taco.py:69–70  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

67 return doc["question"] + " " + doc["sentence"]
68
69 def doc_to_target(self, doc):
70 return " " + ["no", "yes"][doc["label"]]
71
72 def construct_requests(self, doc, ctx):
73 """Uses RequestFactory to construct Requests and returns an iterable of

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected