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

Method _process_doc

test/general/lm_eval/base.py:587–596  ·  view source on GitHub ↗

Override this to process (detokenize, strip, replace, etc.) individual documents. This can be used in a map over documents of a data split. E.g. `map(self._process_doc, self.dataset["validation"])` :return: dict The processed version of the specified `do

(self, doc)

Source from the content-addressed store, hash-verified

585 return []
586
587 def _process_doc(self, doc):
588 """
589 Override this to process (detokenize, strip, replace, etc.) individual
590 documents. This can be used in a map over documents of a data split.
591 E.g. `map(self._process_doc, self.dataset["validation"])`
592
593 :return: dict
594 The processed version of the specified `doc`.
595 """
596 return doc
597
598 def fewshot_examples(self, k, rnd):
599 if self._training_docs is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected