Class: Aws::LexModelsV2::Types::SlotValueSelectionSetting
- Inherits:
-
Struct
- Object
- Struct
- Aws::LexModelsV2::Types::SlotValueSelectionSetting
- Defined in:
- gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb
Overview
When making an API call, you may pass SlotValueSelectionSetting data as a hash:
{
resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
regex_filter: {
pattern: "RegexPattern", # required
},
advanced_recognition_setting: {
audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
},
}
Contains settings used by Amazon Lex to select a slot value.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#advanced_recognition_setting ⇒ Types::AdvancedRecognitionSetting
Provides settings that enable advanced recognition settings for slot values.
-
#regex_filter ⇒ Types::SlotValueRegexFilter
A regular expression used to validate the value of a slot.
-
#resolution_strategy ⇒ String
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
Instance Attribute Details
#advanced_recognition_setting ⇒ Types::AdvancedRecognitionSetting
Provides settings that enable advanced recognition settings for slot values.
10520 10521 10522 10523 10524 10525 10526 |
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 10520 class SlotValueSelectionSetting < Struct.new( :resolution_strategy, :regex_filter, :advanced_recognition_setting) SENSITIVE = [] include Aws::Structure end |
#regex_filter ⇒ Types::SlotValueRegexFilter
A regular expression used to validate the value of a slot.
10520 10521 10522 10523 10524 10525 10526 |
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 10520 class SlotValueSelectionSetting < Struct.new( :resolution_strategy, :regex_filter, :advanced_recognition_setting) SENSITIVE = [] include Aws::Structure end |
#resolution_strategy ⇒ String
Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
TopResolution - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
If you don't specify the valueSelectionStrategy, the default is OriginalValue.
10520 10521 10522 10523 10524 10525 10526 |
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 10520 class SlotValueSelectionSetting < Struct.new( :resolution_strategy, :regex_filter, :advanced_recognition_setting) SENSITIVE = [] include Aws::Structure end |