Class: Google::Cloud::Language::V1::ClassificationModelOptions
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1::ClassificationModelOptions
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v1/language_service.rb
Overview
Model options available for classification requests.
Defined Under Namespace
Instance Attribute Summary collapse
-
#v1_model ⇒ ::Google::Cloud::Language::V1::ClassificationModelOptions::V1Model
Setting this field will use the V1 model and V1 content categories version.
-
#v2_model ⇒ ::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model
Setting this field will use the V2 model with the appropriate content categories version.
Instance Attribute Details
#v1_model ⇒ ::Google::Cloud::Language::V1::ClassificationModelOptions::V1Model
Returns 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.
913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 913 class ClassificationModelOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Options for the V1 model. class V1Model include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Options for the V2 model. # @!attribute [rw] content_categories_version # @return [::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model::ContentCategoriesVersion] # The content categories used for classification. class V2Model include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The content categories used for classification. module ContentCategoriesVersion # If `ContentCategoriesVersion` is not specified, this option will # default to `V1`. CONTENT_CATEGORIES_VERSION_UNSPECIFIED = 0 # Legacy content categories of our initial launch in 2017. V1 = 1 # Updated content categories in 2022. V2 = 2 end end end |
#v2_model ⇒ ::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model
Returns Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.
913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 913 class ClassificationModelOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Options for the V1 model. class V1Model include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Options for the V2 model. # @!attribute [rw] content_categories_version # @return [::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model::ContentCategoriesVersion] # The content categories used for classification. class V2Model include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The content categories used for classification. module ContentCategoriesVersion # If `ContentCategoriesVersion` is not specified, this option will # default to `V1`. CONTENT_CATEGORIES_VERSION_UNSPECIFIED = 0 # Legacy content categories of our initial launch in 2017. V1 = 1 # Updated content categories in 2022. V2 = 2 end end end |