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

Method _process_doc

test/general/lm_eval/tasks/swag.py:50–56  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

48 return map(self._process_doc, self.dataset["validation"])
49
50 def _process_doc(self, doc):
51 out_doc = {
52 "query": doc["startphrase"],
53 "choices": [doc["ending0"], doc["ending1"], doc["ending2"], doc["ending3"]],
54 "gold": int(doc["label"]),
55 }
56 return out_doc
57
58 def doc_to_text(self, doc):
59 return doc["query"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected