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

Method doc_to_target

test/general/lm_eval/tasks/anli.py:80–84  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

78 return doc["premise"]
79
80 def doc_to_target(self, doc):
81 # True = entailment
82 # False = contradiction
83 # Neither = neutral
84 return " " + ["True", "Neither", "False"][doc["label"]]
85
86 def construct_requests(self, doc, ctx):
87 """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