MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / _process_doc

Method _process_doc

lm-eval-harness/lm_eval/api/task.py:313–322  ·  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

311 return self.test_docs()
312
313 def _process_doc(self, doc):
314 """
315 Override this to process (detokenize, strip, replace, etc.) individual
316 documents. This can be used in a map over documents of a data split.
317 E.g. `map(self._process_doc, self.dataset["validation"])`
318
319 :return: dict
320 The processed version of the specified `doc`.
321 """
322 return doc
323
324 @property
325 def instances(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected