Class: Google::Apis::LanguageV1beta2::ClassificationModelOptions
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::ClassificationModelOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Overview
Model options available for classification requests.
Instance Attribute Summary collapse
-
#v1_model ⇒ Google::Apis::LanguageV1beta2::ClassificationModelOptionsV1Model
Options for the V1 model.
-
#v2_model ⇒ Google::Apis::LanguageV1beta2::ClassificationModelOptionsV2Model
Options for the V2 model.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClassificationModelOptions
constructor
A new instance of ClassificationModelOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClassificationModelOptions
Returns a new instance of ClassificationModelOptions.
443 444 445 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 443 def initialize(**args) update!(**args) end |
Instance Attribute Details
#v1_model ⇒ Google::Apis::LanguageV1beta2::ClassificationModelOptionsV1Model
Options for the V1 model.
Corresponds to the JSON property v1Model
436 437 438 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 436 def v1_model @v1_model end |
#v2_model ⇒ Google::Apis::LanguageV1beta2::ClassificationModelOptionsV2Model
Options for the V2 model.
Corresponds to the JSON property v2Model
441 442 443 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 441 def v2_model @v2_model end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
448 449 450 451 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 448 def update!(**args) @v1_model = args[:v1_model] if args.key?(:v1_model) @v2_model = args[:v2_model] if args.key?(:v2_model) end |