Reference documentation and code samples for the Cloud Natural Language V1 Client class V2Model.
Options for the V2 model.
Generated from protobuf message google.cloud.language.v1.ClassificationModelOptions.V2Model
Namespace
Google \ Cloud \ Language \ V1 \ ClassificationModelOptionsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ content_categories_version |
int
The content categories used for classification. |
getContentCategoriesVersion
The content categories used for classification.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ContentCategoriesVersion. |
setContentCategoriesVersion
The content categories used for classification.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ContentCategoriesVersion. |
| Returns | |
|---|---|
| Type | Description |
$this |
|