共用方式為


LuisRecognizer.RecognizeAsync 方法

定義

多載

RecognizeAsync(DialogContext, Activity, LuisRecognizerOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync(ITurnContext, LuisRecognizerOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync(ITurnContext, LuisPredictionOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)
已淘汰.

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync(DialogContext, Activity, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync(DialogContext, Activity, LuisRecognizerOptions, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

RecognizeAsync(String, LuisRecognizerOptions, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync(ITurnContext, LuisRecognizerOptions, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

RecognizeAsync(ITurnContext, LuisPredictionOptions, CancellationToken)
已淘汰.

透過辨識器執行語句,並傳回泛型辨識器結果。

RecognizeAsync(DialogContext, Activity, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

RecognizeAsync(ITurnContext, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

RecognizeAsync<T>(DialogContext, Activity, LuisRecognizerOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync<T>(ITurnContext, LuisRecognizerOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync<T>(ITurnContext, LuisPredictionOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)
已淘汰.

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync<T>(DialogContext, Activity, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync<T>(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

RecognizeAsync<T>(ITurnContext, LuisRecognizerOptions, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

RecognizeAsync<T>(ITurnContext, LuisPredictionOptions, CancellationToken)
已淘汰.

透過辨識器執行語句,並傳回強型別辨識器結果。

RecognizeAsync<T>(DialogContext, Activity, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

RecognizeAsync<T>(ITurnContext, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

RecognizeAsync<T>(DialogContext, Activity, LuisRecognizerOptions, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

RecognizeAsync(DialogContext, Activity, LuisRecognizerOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (dialogContext As DialogContext, activity As Activity, recognizerOptions As LuisRecognizerOptions, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizerResult)

參數

dialogContext
DialogContext

內容物件,其中包含與使用者單一回合交談的資訊。

activity
Activity

要辨識的活動。

recognizerOptions
LuisRecognizerOptions

LuisRecognizerOptions呼叫要使用的實例。 此參數會覆寫建構函式中傳遞的預設 LuisRecognizerOptions

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄至遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

目前回合內容活動中目前訊息文字分析的 LUIS 結果。

適用於

RecognizeAsync(ITurnContext, LuisRecognizerOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (turnContext As ITurnContext, recognizerOptions As LuisRecognizerOptions, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizerResult)

參數

turnContext
ITurnContext

內容物件,其中包含與使用者單一回合交談的資訊。

recognizerOptions
LuisRecognizerOptions

LuisRecognizerOptions呼叫要使用的實例。 此參數會覆寫建構函式中傳遞的預設 LuisRecognizerOptions

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄至遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

目前回合內容活動中目前訊息文字分析的 LUIS 結果。

適用於

RecognizeAsync(ITurnContext, LuisPredictionOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

警告

Method is deprecated, please use RecognizeAsync(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, Dictionary<string, string> telemetryProperties, Dictionary<string, double> telemetryMetrics = null, CancellationToken cancellationToken = default(CancellationToken)).

傳回 (建議動作和意圖) 的分析結果。

[System.Obsolete("Method is deprecated, please use RecognizeAsync(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, Dictionary<string, string> telemetryProperties, Dictionary<string, double> telemetryMetrics = null, CancellationToken cancellationToken = default(CancellationToken)).")]
public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Method is deprecated, please use RecognizeAsync(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, Dictionary<string, string> telemetryProperties, Dictionary<string, double> telemetryMetrics = null, CancellationToken cancellationToken = default(CancellationToken)).")>]
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (turnContext As ITurnContext, predictionOptions As LuisPredictionOptions, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizerResult)

參數

turnContext
ITurnContext

內容物件,其中包含與使用者單一回合交談的資訊。

predictionOptions
LuisPredictionOptions

LuisPredictionOptions呼叫要使用的實例。 此參數會與建構函式中傳遞的預設 LuisPredictionOptions 合併。 如果傳遞,這會呼叫 Luis V2 端點。

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄至遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

目前回合內容活動中目前訊息文字分析的 LUIS 結果。

屬性

適用於

RecognizeAsync(DialogContext, Activity, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (dialogContext As DialogContext, activity As Activity, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizerResult)

參數

dialogContext
DialogContext

內容物件,其中包含與使用者單一回合交談的資訊。

activity
Activity

要辨識的活動。

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄至遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

目前回合內容活動中目前訊息文字分析的 LUIS 結果。

適用於

RecognizeAsync(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.ITurnContext turnContext, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (turnContext As ITurnContext, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizerResult)

參數

turnContext
ITurnContext

內容物件,其中包含與使用者單一回合交談的資訊。

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄至遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

目前回合內容活動中目前訊息文字分析的 LUIS 結果。

實作

適用於

RecognizeAsync(DialogContext, Activity, LuisRecognizerOptions, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Threading.CancellationToken cancellationToken);
abstract member RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (dialogContext As DialogContext, activity As Activity, recognizerOptions As LuisRecognizerOptions, cancellationToken As CancellationToken) As Task(Of RecognizerResult)

參數

dialogContext
DialogContext

對話方塊內容。

activity
Activity

要辨識的活動。

recognizerOptions
LuisRecognizerOptions

LuisRecognizerOptions呼叫要使用的實例。 此參數會覆寫建構函式中傳遞的預設 LuisRecognizerOptions

cancellationToken
CancellationToken

取消權杖。

傳回

語句的分析。

適用於

RecognizeAsync(String, LuisRecognizerOptions, CancellationToken)

傳回 (建議動作和意圖) 的分析結果。

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (string utterance, Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeAsync : string * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : string * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (utterance As String, Optional recognizerOptions As LuisRecognizerOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizerResult)

參數

utterance
String

要辨識的語句。

recognizerOptions
LuisRecognizerOptions

LuisRecognizerOptions呼叫要使用的實例。 此參數會覆寫建構函式中傳遞的預設 LuisRecognizerOptions

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

目前回合內容活動中目前訊息文字分析的 LUIS 結果。

備註

使用此方法時不會提供任何遙測。

適用於

RecognizeAsync(ITurnContext, LuisRecognizerOptions, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Threading.CancellationToken cancellationToken);
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (turnContext As ITurnContext, recognizerOptions As LuisRecognizerOptions, cancellationToken As CancellationToken) As Task(Of RecognizerResult)

參數

turnContext
ITurnContext

回合內容。

recognizerOptions
LuisRecognizerOptions

LuisRecognizerOptions呼叫要使用的實例。 此參數會覆寫建構函式中傳遞的預設 LuisRecognizerOptions

cancellationToken
CancellationToken

取消權杖。

傳回

語句的分析。

適用於

RecognizeAsync(ITurnContext, LuisPredictionOptions, CancellationToken)

警告

Method is deprecated, please use RecognizeAsync(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, CancellationToken cancellationToken).

透過辨識器執行語句,並傳回泛型辨識器結果。

[System.Obsolete("Method is deprecated, please use RecognizeAsync(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, CancellationToken cancellationToken).")]
public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Method is deprecated, please use RecognizeAsync(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, CancellationToken cancellationToken).")>]
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (turnContext As ITurnContext, predictionOptions As LuisPredictionOptions, cancellationToken As CancellationToken) As Task(Of RecognizerResult)

參數

turnContext
ITurnContext

回合內容。

predictionOptions
LuisPredictionOptions

LuisPredictionOptions呼叫要使用的實例。 此參數會與建構函式中傳遞的預設 LuisPredictionOptions 合併。 如果傳遞,這會呼叫 Luis V2 端點。

cancellationToken
CancellationToken

取消權杖。

傳回

語句的分析。

屬性

適用於

RecognizeAsync(DialogContext, Activity, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken);
abstract member RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (dialogContext As DialogContext, activity As Activity, cancellationToken As CancellationToken) As Task(Of RecognizerResult)

參數

dialogContext
DialogContext

dialogcoNtext。

activity
Activity

活動。

cancellationToken
CancellationToken

cancellationtoken。

傳回

Task<TResult> 表示非同步作業的結果。

適用於

RecognizeAsync(ITurnContext, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.ITurnContext turnContext, System.Threading.CancellationToken cancellationToken);
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Overridable Function RecognizeAsync (turnContext As ITurnContext, cancellationToken As CancellationToken) As Task(Of RecognizerResult)

參數

turnContext
ITurnContext

回合內容。

cancellationToken
CancellationToken

取消權杖。

傳回

語句的分析。

實作

適用於

RecognizeAsync<T>(DialogContext, Activity, LuisRecognizerOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 分析的結果。

public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (dialogContext As DialogContext, activity As Activity, recognizerOptions As LuisRecognizerOptions, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

類型參數

T

辨識結果類型。

參數

dialogContext
DialogContext

內容物件,包含單一回合與使用者交談的資訊。

activity
Activity

要辨識的活動。

recognizerOptions
LuisRecognizerOptions

LuisRecognizerOptions呼叫要使用的實例。 此參數會覆寫建構函式中傳遞的預設 LuisRecognizerOptions

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄到遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

Task<T>

目前回合內容活動中目前郵件內文分析的 LUIS 結果。

適用於

RecognizeAsync<T>(ITurnContext, LuisRecognizerOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 分析的結果。

public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (turnContext As ITurnContext, recognizerOptions As LuisRecognizerOptions, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

類型參數

T

辨識結果類型。

參數

turnContext
ITurnContext

內容物件,包含單一回合與使用者交談的資訊。

recognizerOptions
LuisRecognizerOptions

LuisRecognizerOptions呼叫要使用的實例。 此參數會覆寫建構函式中傳遞的預設 LuisRecognizerOptions

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄到遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

Task<T>

目前回合內容活動中目前郵件內文分析的 LUIS 結果。

適用於

RecognizeAsync<T>(ITurnContext, LuisPredictionOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

警告

Method is deprecated, please use RecognizeAsync(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, Dictionary<string, string> telemetryProperties, Dictionary<string, double> telemetryMetrics = null, CancellationToken cancellationToken = default(CancellationToken)).

傳回 (建議動作和意圖) 分析的結果。

[System.Obsolete("Method is deprecated, please use RecognizeAsync(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, Dictionary<string, string> telemetryProperties, Dictionary<string, double> telemetryMetrics = null, CancellationToken cancellationToken = default(CancellationToken)).")]
public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
[<System.Obsolete("Method is deprecated, please use RecognizeAsync(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, Dictionary<string, string> telemetryProperties, Dictionary<string, double> telemetryMetrics = null, CancellationToken cancellationToken = default(CancellationToken)).")>]
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (turnContext As ITurnContext, predictionOptions As LuisPredictionOptions, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

類型參數

T

辨識結果類型。

參數

turnContext
ITurnContext

內容物件,包含單一回合與使用者交談的資訊。

predictionOptions
LuisPredictionOptions

LuisPredictionOptions呼叫要使用的實例。 此參數會與建構函式中傳遞的預設 LuisPredictionOptions 合併。 如果傳遞,這會使用 Luis V2 端點。

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄到遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

Task<T>

目前回合內容活動中目前郵件內文分析的 LUIS 結果。

屬性

適用於

RecognizeAsync<T>(DialogContext, Activity, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 分析的結果。

public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (dialogContext As DialogContext, activity As Activity, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

類型參數

T

辨識結果類型。

參數

dialogContext
DialogContext

內容物件,包含單一回合與使用者交談的資訊。

activity
Activity

要辨識的活動。

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄到遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

Task<T>

目前回合內容活動中目前郵件內文分析的 LUIS 結果。

適用於

RecognizeAsync<T>(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)

傳回 (建議動作和意圖) 分析的結果。

public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.ITurnContext turnContext, System.Collections.Generic.Dictionary<string,string> telemetryProperties, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (turnContext As ITurnContext, telemetryProperties As Dictionary(Of String, String), Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

類型參數

T

辨識結果類型。

參數

turnContext
ITurnContext

內容物件,包含單一回合與使用者交談的資訊。

telemetryProperties
Dictionary<String,String>

使用 LuisResult 事件記錄到遙測的其他屬性。

telemetryMetrics
Dictionary<String,Double>

使用 LuisResult 事件記錄到遙測的其他計量。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

Task<T>

目前回合內容活動中目前郵件內文分析的 LUIS 結果。

實作

適用於

RecognizeAsync<T>(ITurnContext, LuisRecognizerOptions, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Threading.CancellationToken cancellationToken) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (turnContext As ITurnContext, recognizerOptions As LuisRecognizerOptions, cancellationToken As CancellationToken) As Task(Of T)

類型參數

T

辨識結果類型。

參數

turnContext
ITurnContext

回合內容。

recognizerOptions
LuisRecognizerOptions

LuisRecognizerOptions呼叫要使用的實例。 此參數會覆寫建構函式中傳遞的預設 LuisRecognizerOptions

cancellationToken
CancellationToken

取消權杖。

傳回

Task<T>

語句的分析。

適用於

RecognizeAsync<T>(ITurnContext, LuisPredictionOptions, CancellationToken)

警告

Method is deprecated, please use RecognizeAsync<T>(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, CancellationToken cancellationToken).

透過辨識器執行語句,並傳回強型別辨識器結果。

[System.Obsolete("Method is deprecated, please use RecognizeAsync<T>(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, CancellationToken cancellationToken).")]
public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions, System.Threading.CancellationToken cancellationToken) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
[<System.Obsolete("Method is deprecated, please use RecognizeAsync<T>(ITurnContext turnContext, LuisRecognizerOptions recognizerOptions, CancellationToken cancellationToken).")>]
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (turnContext As ITurnContext, predictionOptions As LuisPredictionOptions, cancellationToken As CancellationToken) As Task(Of T)

類型參數

T

辨識結果類型。

參數

turnContext
ITurnContext

回合內容。

predictionOptions
LuisPredictionOptions

LuisPredictionOptions呼叫要使用的實例。 此參數會與建構函式中傳遞的預設 LuisPredictionOptions 合併。 如果傳遞,這會呼叫 Luis V2 端點。

cancellationToken
CancellationToken

取消權杖。

傳回

Task<T>

語句的分析。

屬性

適用於

RecognizeAsync<T>(DialogContext, Activity, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (dialogContext As DialogContext, activity As Activity, cancellationToken As CancellationToken) As Task(Of T)

類型參數

T

結果的類型。

參數

dialogContext
DialogContext

dialogCoNtext。

activity
Activity

活動。

cancellationToken
CancellationToken

cancellationToken。

傳回

Task<T>

Task<TResult> 表示非同步作業的結果。

適用於

RecognizeAsync<T>(ITurnContext, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.ITurnContext turnContext, System.Threading.CancellationToken cancellationToken) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (turnContext As ITurnContext, cancellationToken As CancellationToken) As Task(Of T)

類型參數

T

辨識結果類型。

參數

turnContext
ITurnContext

回合內容。

cancellationToken
CancellationToken

取消權杖。

傳回

Task<T>

語句的分析。

實作

適用於

RecognizeAsync<T>(DialogContext, Activity, LuisRecognizerOptions, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Threading.CancellationToken cancellationToken) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
override this.RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Overridable Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (dialogContext As DialogContext, activity As Activity, recognizerOptions As LuisRecognizerOptions, cancellationToken As CancellationToken) As Task(Of T)

類型參數

T

辨識結果類型。

參數

dialogContext
DialogContext

對話方塊內容。

activity
Activity

要辨識的活動。

recognizerOptions
LuisRecognizerOptions

LuisRecognizerOptions呼叫要使用的實例。 此參數會覆寫建構函式中傳遞的預設 LuisRecognizerOptions

cancellationToken
CancellationToken

取消權杖。

傳回

Task<T>

語句的分析。

適用於