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

Method doc_to_target

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

Source from the content-addressed store, hash-verified

188 return doc["premise"].strip()[:-1] + f" {connector}"
189
190 def doc_to_target(self, doc):
191 correct_choice = doc["choice1"] if doc["label"] == 0 else doc["choice2"]
192 # Connect the sentences
193 return " " + self.convert_choice(correct_choice)
194
195 def construct_requests(self, doc, ctx):
196 choice1 = " " + self.convert_choice(doc["choice1"])

Callers

nothing calls this directly

Calls 1

convert_choiceMethod · 0.95

Tested by

no test coverage detected