ChoiceRecognizers.RecognizeChoices Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RecognizeChoices(String, IList<Choice>, FindChoicesOptions) |
Matches user input against a list of choices. |
RecognizeChoices(String, IList<String>, FindChoicesOptions) |
Matches user input against a list of choices. |
RecognizeChoices(String, IList<Choice>, FindChoicesOptions)
Matches user input against a list of choices.
public static System.Collections.Generic.List<Microsoft.Bot.Builder.Dialogs.Choices.ModelResult<Microsoft.Bot.Builder.Dialogs.Choices.FoundChoice>> RecognizeChoices (string utterance, System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> list, Microsoft.Bot.Builder.Dialogs.Choices.FindChoicesOptions options = default);
static member RecognizeChoices : string * System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * Microsoft.Bot.Builder.Dialogs.Choices.FindChoicesOptions -> System.Collections.Generic.List<Microsoft.Bot.Builder.Dialogs.Choices.ModelResult<Microsoft.Bot.Builder.Dialogs.Choices.FoundChoice>>
Public Shared Function RecognizeChoices (utterance As String, list As IList(Of Choice), Optional options As FindChoicesOptions = Nothing) As List(Of ModelResult(Of FoundChoice))
Parameters
- utterance
- String
The input.
- options
- FindChoicesOptions
Optional, options to control the recognition strategy.
Returns
A list of found choices, sorted by most relevant first.
Applies to
RecognizeChoices(String, IList<String>, FindChoicesOptions)
Matches user input against a list of choices.
public static System.Collections.Generic.List<Microsoft.Bot.Builder.Dialogs.Choices.ModelResult<Microsoft.Bot.Builder.Dialogs.Choices.FoundChoice>> RecognizeChoices (string utterance, System.Collections.Generic.IList<string> choices, Microsoft.Bot.Builder.Dialogs.Choices.FindChoicesOptions options = default);
static member RecognizeChoices : string * System.Collections.Generic.IList<string> * Microsoft.Bot.Builder.Dialogs.Choices.FindChoicesOptions -> System.Collections.Generic.List<Microsoft.Bot.Builder.Dialogs.Choices.ModelResult<Microsoft.Bot.Builder.Dialogs.Choices.FoundChoice>>
Public Shared Function RecognizeChoices (utterance As String, choices As IList(Of String), Optional options As FindChoicesOptions = Nothing) As List(Of ModelResult(Of FoundChoice))
Parameters
- utterance
- String
The input.
- options
- FindChoicesOptions
Optional, options to control the recognition strategy.
Returns
A list of found choices, sorted by most relevant first.