(self,
dataset: lit_dataset.Dataset)
| 855 | interpreter=interpreter_name) |
| 856 | |
| 857 | def _run_annotators(self, |
| 858 | dataset: lit_dataset.Dataset) -> lit_dataset.Dataset: |
| 859 | datapoints = [dict(ex) for ex in dataset.examples] |
| 860 | annotated_spec = dict(dataset.spec()) |
| 861 | for annotator in self._annotators: |
| 862 | annotator.annotate(datapoints, dataset, annotated_spec) |
| 863 | return lit_dataset.Dataset( |
| 864 | base=dataset, examples=datapoints, spec=annotated_spec) |
| 865 | |
| 866 | def make_handler(self, fn): |
| 867 | """Convenience wrapper to handle args and serialization. |
no test coverage detected