Annotate the provided inputs. Args: inputs: sequence of inputs, modified in-place. dataset: dataset which the examples belong to. dataset_spec_to_annotate: spec to add new annotated fields to, modified in-place. If none provided, then no spec is updated. Returns:
(self, inputs: list[dict[str, Any]],
dataset: lit_dataset.Dataset,
dataset_spec_to_annotate: Optional[types.Spec] = None)
| 189 | |
| 190 | @abc.abstractmethod |
| 191 | def annotate(self, inputs: list[dict[str, Any]], |
| 192 | dataset: lit_dataset.Dataset, |
| 193 | dataset_spec_to_annotate: Optional[types.Spec] = None): |
| 194 | """Annotate the provided inputs. |
| 195 | |
| 196 | Args: |
| 197 | inputs: sequence of inputs, modified in-place. |
| 198 | dataset: dataset which the examples belong to. |
| 199 | dataset_spec_to_annotate: spec to add new annotated fields to, modified |
| 200 | in-place. If none provided, then no spec is updated. |
| 201 | |
| 202 | Returns: |
| 203 | Updated spec for the dataset, given the new annotations. |
| 204 | """ |
| 205 | pass |