Class Label

Label attaches schema information and/or other metadata to segments within a Document. Multiple Labels on a single field can denote either different labels, different instances of the same label created at different times, or some combination of both.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes
NameDescription
strautoml_model
Label is generated AutoML model. This field stores the full resource name of the AutoML model. Format: ``projects/{project-id}/locations/{location-id}/models/{model-id}`` This field is a member of `oneof`_ ``source``.
strname
Name of the label. When the label is generated from AutoML Text Classification model, this field represents the name of the category.
floatconfidence
Confidence score between 0 and 1 for label assignment.

Inheritance

builtins.object > proto.message.Message > Label