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

Method _process_doc

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

Source from the content-addressed store, hash-verified

293 DATASET_NAME = "qasper"
294
295 def _process_doc(self, doc):
296 doc = _process_doc_prepended_question(doc)
297 doc["is_yes_no"] = reduce(lambda prev, cur: prev and squad_metrics.normalize_answer(cur)
298 in ["yes", "no"], doc["outputs"], True)
299 return [doc]
300
301 def _scrolls_metrics(self):
302 return {"f1": "f1"}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected