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

Method doc_to_target

test/general/lm_eval/tasks/webqs.py:65–69  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

63 return doc["question"]
64
65 def doc_to_target(self, doc):
66 # this picks one answer to be the "correct" one, despite sometimes
67 # multiple correct answers being possible.
68 # TODO: make sure we're actually handling multi-answer correctly
69 return " " + doc["answers"][0]
70
71 def _remove_prefixes(self, aliases):
72 # Optimization: Remove any alias that has a strict prefix elsewhere in the list

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected