Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings

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

Overview

Settings related to NLU.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3NluSettings

Returns a new instance of GoogleCloudDialogflowCxV3NluSettings.



5504
5505
5506
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5504

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

Instance Attribute Details

#classification_thresholdFloat

To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0. 0, the default of 0.3 is used. You can set a separate classification threshold for the flow in each language enabled for the agent. Corresponds to the JSON property classificationThreshold

Returns:

  • (Float)


5492
5493
5494
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5492

def classification_threshold
  @classification_threshold
end

#model_training_modeString

Indicates NLU model training mode. Corresponds to the JSON property modelTrainingMode

Returns:

  • (String)


5497
5498
5499
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5497

def model_training_mode
  @model_training_mode
end

#model_typeString

Indicates the type of NLU model. Corresponds to the JSON property modelType

Returns:

  • (String)


5502
5503
5504
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5502

def model_type
  @model_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5509
5510
5511
5512
5513
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5509

def update!(**args)
  @classification_threshold = args[:classification_threshold] if args.key?(:classification_threshold)
  @model_training_mode = args[:model_training_mode] if args.key?(:model_training_mode)
  @model_type = args[:model_type] if args.key?(:model_type)
end