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

Method doc_to_target

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

Source from the content-addressed store, hash-verified

251 )
252
253 def doc_to_target(self, doc):
254 # True = entailment
255 # False = not entailment
256 return " {}".format({0: "yes", 1: "no"}[doc["label"]])
257
258 def construct_requests(self, doc, ctx):
259 ll_yes, _ = rf.loglikelihood(ctx, " yes")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected