MCPcopy Create free account
hub / github.com/PAIR-code/lit / annotate

Method annotate

lit_nlp/api/components.py:191–205  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

_run_annotatorsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected