Cloud Natural Language V1beta2 Client - Class ClassificationModelOptions (0.28.5)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var Google\Cloud\Language\V1beta2\ClassificationModelOptions\V1Model
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Cloud\Language\V1beta2\ClassificationModelOptions\V2Model
Returns
TypeDescription
$this

getModelType

Returns
TypeDescription
string