Class: Google::Cloud::Dialogflow::CX::V3::NluSettings

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/cx/v3/flow.rb

Overview

Settings related to NLU.

Defined Under Namespace

Modules: ModelTrainingMode, ModelType

Instance Attribute Summary collapse

Instance Attribute Details

#classification_threshold::Float

Returns 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.

Returns:

  • (::Float)

    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.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'proto_docs/google/cloud/dialogflow/cx/v3/flow.rb', line 41

class NluSettings
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # NLU model type.
  module ModelType
    # Not specified. `MODEL_TYPE_STANDARD` will be used.
    MODEL_TYPE_UNSPECIFIED = 0

    # Use standard NLU model.
    MODEL_TYPE_STANDARD = 1

    # Use advanced NLU model.
    MODEL_TYPE_ADVANCED = 3
  end

  # NLU model training mode.
  module ModelTrainingMode
    # Not specified. `MODEL_TRAINING_MODE_AUTOMATIC` will be used.
    MODEL_TRAINING_MODE_UNSPECIFIED = 0

    # NLU model training is automatically triggered when a flow gets modified.
    # User can also manually trigger model training in this mode.
    MODEL_TRAINING_MODE_AUTOMATIC = 1

    # User needs to manually trigger NLU model training. Best for large flows
    # whose models take long time to train.
    MODEL_TRAINING_MODE_MANUAL = 2
  end
end

#model_training_mode::Google::Cloud::Dialogflow::CX::V3::NluSettings::ModelTrainingMode

Returns Indicates NLU model training mode.

Returns:



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'proto_docs/google/cloud/dialogflow/cx/v3/flow.rb', line 41

class NluSettings
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # NLU model type.
  module ModelType
    # Not specified. `MODEL_TYPE_STANDARD` will be used.
    MODEL_TYPE_UNSPECIFIED = 0

    # Use standard NLU model.
    MODEL_TYPE_STANDARD = 1

    # Use advanced NLU model.
    MODEL_TYPE_ADVANCED = 3
  end

  # NLU model training mode.
  module ModelTrainingMode
    # Not specified. `MODEL_TRAINING_MODE_AUTOMATIC` will be used.
    MODEL_TRAINING_MODE_UNSPECIFIED = 0

    # NLU model training is automatically triggered when a flow gets modified.
    # User can also manually trigger model training in this mode.
    MODEL_TRAINING_MODE_AUTOMATIC = 1

    # User needs to manually trigger NLU model training. Best for large flows
    # whose models take long time to train.
    MODEL_TRAINING_MODE_MANUAL = 2
  end
end

#model_type::Google::Cloud::Dialogflow::CX::V3::NluSettings::ModelType

Returns Indicates the type of NLU model.

Returns:



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'proto_docs/google/cloud/dialogflow/cx/v3/flow.rb', line 41

class NluSettings
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # NLU model type.
  module ModelType
    # Not specified. `MODEL_TYPE_STANDARD` will be used.
    MODEL_TYPE_UNSPECIFIED = 0

    # Use standard NLU model.
    MODEL_TYPE_STANDARD = 1

    # Use advanced NLU model.
    MODEL_TYPE_ADVANCED = 3
  end

  # NLU model training mode.
  module ModelTrainingMode
    # Not specified. `MODEL_TRAINING_MODE_AUTOMATIC` will be used.
    MODEL_TRAINING_MODE_UNSPECIFIED = 0

    # NLU model training is automatically triggered when a flow gets modified.
    # User can also manually trigger model training in this mode.
    MODEL_TRAINING_MODE_AUTOMATIC = 1

    # User needs to manually trigger NLU model training. Best for large flows
    # whose models take long time to train.
    MODEL_TRAINING_MODE_MANUAL = 2
  end
end