Cloud Natural Language V1beta2 Client - Class ClassificationModelOptions (0.33.0)

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 \ V1beta2

Methods

__construct

Constructor.

Parameters
Name Description
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.

Returns
Type Description
Google\Cloud\Language\V1beta2\ClassificationModelOptions\V1Model|null

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.

Parameter
Name Description
var Google\Cloud\Language\V1beta2\ClassificationModelOptions\V1Model
Returns
Type Description
$this

getV2Model

Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.

Returns
Type Description
Google\Cloud\Language\V1beta2\ClassificationModelOptions\V2Model|null

hasV2Model

setV2Model

Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.

Parameter
Name Description
var Google\Cloud\Language\V1beta2\ClassificationModelOptions\V2Model
Returns
Type Description
$this

getModelType

Returns
Type Description
string