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

Method _process_doc

test/general/lm_eval/tasks/scrolls.py:387–391  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

385 CHOICES = ["Not mentioned", "Entailment", "Contradiction"]
386
387 def _process_doc(self, doc):
388 doc = _process_doc_prepended_question(doc)
389 doc["choices"] = ContractNLI.CHOICES
390 doc["gold"] = ContractNLI.CHOICES.index(doc["outputs"][0])
391 return [doc]
392
393 def doc_to_text(self, doc):
394 return f"{doc['text']}\n\nHypothesis: {doc['question']}\nConclusion:"

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected