FindValuesOptions interface
Basic search options used to control how choices are recognized in a users utterance.
Properties
allow |
(Optional) if true, then only some of the tokens in a value need to exist to be considered a match. The default value is "false". |
locale | (Optional) locale/culture code of the utterance. The default is |
max |
(Optional) maximum tokens allowed between two matched tokens in the utterance. So with a max distance of 2 the value "second last" would match the utterance "second from the last" but it wouldn't match "Wait a second. That's not the last one is it?". The default value is "2". |
tokenizer | (Optional) tokenizer to use when parsing the utterance and values being recognized. |
Property Details
allowPartialMatches
(Optional) if true, then only some of the tokens in a value need to exist to be considered a match. The default value is "false".
allowPartialMatches?: boolean
Property Value
boolean
locale
(Optional) locale/culture code of the utterance. The default is en-US
.
locale?: string
Property Value
string
maxTokenDistance
(Optional) maximum tokens allowed between two matched tokens in the utterance. So with a max distance of 2 the value "second last" would match the utterance "second from the last" but it wouldn't match "Wait a second. That's not the last one is it?". The default value is "2".
maxTokenDistance?: number
Property Value
number
tokenizer
(Optional) tokenizer to use when parsing the utterance and values being recognized.
tokenizer?: TokenizerFunction