Natural Language V1beta2 API - Class Google::Cloud::Language::V1beta2::ClassificationModelOptions (v0.13.0)

Reference documentation and code samples for the Natural Language V1beta2 API class Google::Cloud::Language::V1beta2::ClassificationModelOptions.

Model options available for classification requests.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#v1_model

def v1_model() -> ::Google::Cloud::Language::V1beta2::ClassificationModelOptions::V1Model
Returns
  • (::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.

    Note: The following fields are mutually exclusive: v1_model, v2_model. If a field in that set is populated, all other fields in the set will automatically be cleared.

#v1_model=

def v1_model=(value) -> ::Google::Cloud::Language::V1beta2::ClassificationModelOptions::V1Model
Parameter
  • value (::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.

    Note: The following fields are mutually exclusive: v1_model, v2_model. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::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.

    Note: The following fields are mutually exclusive: v1_model, v2_model. If a field in that set is populated, all other fields in the set will automatically be cleared.

#v2_model

def v2_model() -> ::Google::Cloud::Language::V1beta2::ClassificationModelOptions::V2Model
Returns
  • (::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.

    Note: The following fields are mutually exclusive: v2_model, v1_model. If a field in that set is populated, all other fields in the set will automatically be cleared.

#v2_model=

def v2_model=(value) -> ::Google::Cloud::Language::V1beta2::ClassificationModelOptions::V2Model
Parameter
  • value (::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.

    Note: The following fields are mutually exclusive: v2_model, v1_model. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::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.

    Note: The following fields are mutually exclusive: v2_model, v1_model. If a field in that set is populated, all other fields in the set will automatically be cleared.