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

Method doc_to_target

test/general/lm_eval/tasks/race.py:125–126  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

123 return doc["article"]
124
125 def doc_to_target(self, doc):
126 return " " + self.get_answer_option(self.last_problem(doc))
127
128 def construct_requests(self, doc, ctx):
129 """Uses RequestFactory to construct Requests and returns an iterable of

Callers

nothing calls this directly

Calls 2

get_answer_optionMethod · 0.95
last_problemMethod · 0.95

Tested by

no test coverage detected