Reference documentation and code samples for the Natural Language V1 API class Google::Cloud::Language::V1::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::V1::ClassificationModelOptions::V1Model
-
(::Google::Cloud::Language::V1::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::V1::ClassificationModelOptions::V1Model
-
value (::Google::Cloud::Language::V1::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.
-
(::Google::Cloud::Language::V1::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::V1::ClassificationModelOptions::V2Model
-
(::Google::Cloud::Language::V1::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::V1::ClassificationModelOptions::V2Model
-
value (::Google::Cloud::Language::V1::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.
-
(::Google::Cloud::Language::V1::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.