Reference documentation and code samples for the Cloud Natural Language V1beta2 Client class ClassificationModelOptions.
Model options available for classification requests.
Generated from protobuf message google.cloud.language.v1beta2.ClassificationModelOptions
Namespace
Google \ Cloud \ Language \ V1beta2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ v1_model
Google\Cloud\Language\V1beta2\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.
↳ v2_model
Google\Cloud\Language\V1beta2\ClassificationModelOptions\V2Model
Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.
getV1Model
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.
hasV1Model
setV1Model
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
getV2Model
Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.
hasV2Model
setV2Model
Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.
$this
getModelType
string