ChoiceRecognizers.RecognizeChoices 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
輸入。
- 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
輸入。
- options
- FindChoicesOptions
選擇性,用來控制辨識策略的選項。
傳回
找到的選項清單,依最相關的優先排序。