共用方式為


LuisRecognizer.RecognizeAsync 方法

定義

多載

RecognizeAsync(ITurnContext, CancellationToken)

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

RecognizeAsync(ITurnContext, LuisPredictionOptions, CancellationToken)

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

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

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

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

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

RecognizeAsync<T>(ITurnContext, CancellationToken)

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

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

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

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

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

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(ITurnContext, LuisPredictionOptions, CancellationToken)

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

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.AI.LuisV3.LuisPredictionOptions predictionOptions, System.Threading.CancellationToken cancellationToken);
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.LuisV3.LuisPredictionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
override this.RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.LuisV3.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 合併。

cancellationToken
CancellationToken

取消權杖。

傳回

語句的分析。

適用於

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(ITurnContext, LuisPredictionOptions, 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.LuisV3.LuisPredictionOptions predictionOptions = default, System.Collections.Generic.Dictionary<string,string> telemetryProperties = default, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.AI.LuisV3.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.LuisV3.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, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional telemetryProperties As Dictionary(Of String, String) = Nothing, Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizerResult)

參數

turnContext
ITurnContext

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

predictionOptions
LuisPredictionOptions

LuisPredictionOptions呼叫要使用的實例。 此參數會與建構函式中傳遞的預設 LuisPredictionOptions 合併。

telemetryProperties
Dictionary<String,String>

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

telemetryMetrics
Dictionary<String,Double>

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

cancellationToken
CancellationToken

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

傳回

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

適用於

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>(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, LuisPredictionOptions, 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.LuisV3.LuisPredictionOptions predictionOptions = default, System.Collections.Generic.Dictionary<string,string> telemetryProperties = default, 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.LuisV3.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.LuisV3.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, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional telemetryProperties As Dictionary(Of String, String) = Nothing, Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

類型參數

T

辨識結果類型。

參數

turnContext
ITurnContext

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

predictionOptions
LuisPredictionOptions

LuisPredictionOptions呼叫要使用的實例。 此參數會與建構函式中傳遞的預設 LuisPredictionOptions 合併。

telemetryProperties
Dictionary<String,String>

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

telemetryMetrics
Dictionary<String,Double>

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

cancellationToken
CancellationToken

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

傳回

Task<T>

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

適用於