Class V2Model (2.12.0)

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

Options for the V2 model.

Attribute

NameDescription
content_categories_version google.cloud.language_v1beta2.types.ClassificationModelOptions.V2Model.ContentCategoriesVersion
The content categories used for classification.

Classes

ContentCategoriesVersion

ContentCategoriesVersion(value)

The content categories used for classification.

Values: CONTENT_CATEGORIES_VERSION_UNSPECIFIED (0): If ContentCategoriesVersion is not specified, this option will default to V1. V1 (1): Legacy content categories of our initial launch in 2017. V2 (2): Updated content categories in 2022.