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.
#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.
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.
#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.
#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.
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.