Class ClassificationModelOptions (2.6.0)

ClassificationModelOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Model options available for classification requests.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

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

Attributes

NameDescription
v1_model google.cloud.language_v1.types.ClassificationModelOptions.V1Model
Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future. This field is a member of `oneof`_ ``model_type``.
v2_model google.cloud.language_v1.types.ClassificationModelOptions.V2Model
Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model. This field is a member of `oneof`_ ``model_type``.

Inheritance

builtins.object > proto.message.Message > ClassificationModelOptions

Classes

V1Model

V1Model(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options for the V1 model.

V2Model

V2Model(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options for the V2 model.