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

選擇性,用來控制辨識策略的選項。

傳回

找到的選項清單,依最相關的優先排序。

適用於