ChoiceRecognizers.RecognizeChoices 方法

定义

重载

RecognizeChoices(String, IList<Choice>, FindChoicesOptions)

将用户输入与选项列表匹配。

RecognizeChoices(String, IList<String>, FindChoicesOptions)

将用户输入与选项列表匹配。

RecognizeChoices(String, IList<Choice>, FindChoicesOptions)

将用户输入与选项列表匹配。

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))

参数

utterance
String

输入。

list
IList<Choice>

选项列表。

options
FindChoicesOptions

可选,用于控制识别策略的选项。

返回

找到的选项的列表,按最相关的第一个排序。

适用于

RecognizeChoices(String, IList<String>, FindChoicesOptions)

将用户输入与选项列表匹配。

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))

参数

utterance
String

输入。

choices
IList<String>

选项列表。

options
FindChoicesOptions

可选,用于控制识别策略的选项。

返回

找到的选项的列表,按最相关的第一个排序。

适用于