Class: Google::Apis::LanguageV1::ClassificationModelOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb

Overview

Model options available for classification requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClassificationModelOptions

Returns a new instance of ClassificationModelOptions.



440
441
442
# File 'lib/google/apis/language_v1/classes.rb', line 440

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#v1_modelGoogle::Apis::LanguageV1::ClassificationModelOptionsV1Model

Options for the V1 model. Corresponds to the JSON property v1Model



433
434
435
# File 'lib/google/apis/language_v1/classes.rb', line 433

def v1_model
  @v1_model
end

#v2_modelGoogle::Apis::LanguageV1::ClassificationModelOptionsV2Model

Options for the V2 model. Corresponds to the JSON property v2Model



438
439
440
# File 'lib/google/apis/language_v1/classes.rb', line 438

def v2_model
  @v2_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



445
446
447
448
# File 'lib/google/apis/language_v1/classes.rb', line 445

def update!(**args)
  @v1_model = args[:v1_model] if args.key?(:v1_model)
  @v2_model = args[:v2_model] if args.key?(:v2_model)
end