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)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected