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

Method partial_target

test/general/lm_eval/tasks/winogrande.py:77–80  ·  view source on GitHub ↗
(cls, doc)

Source from the content-addressed store, hash-verified

75
76 @classmethod
77 def partial_target(cls, doc):
78 # The target is everything after the document specified pronoun.
79 pronoun_loc = doc["sentence"].index("_") + 1
80 return " " + doc["sentence"][pronoun_loc:].strip()
81
82 def construct_requests(self, doc, ctx):
83 """Uses RequestFactory to construct Requests and returns an iterable of

Callers 2

doc_to_targetMethod · 0.95
construct_requestsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected