Partilhar via


Recognizer.RecognizeAsync Método

Definição

Sobrecargas

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

Executa a caixa de diálogo atualContext.TurnContext.Activity através de um reconhecedor e devolve um resultado de reconhecedor genérico.

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

Executa a caixa de diálogo atualContext.TurnContext.Activity através de um reconhecedor e devolve um resultado de reconhecedor com o IRecognizerConvert.

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

Executa a caixa de diálogo atualContext.TurnContext.Activity através de um reconhecedor e devolve um resultado de reconhecedor genérico.

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

Parâmetros

dialogContext
DialogContext

Contexto de caixa de diálogo.

activity
Activity

atividade a reconhecer.

cancellationToken
CancellationToken

Token de cancelamento.

telemetryProperties
Dictionary<String,String>

Propriedades adicionais a registar na telemetria com o evento LuisResult.

telemetryMetrics
Dictionary<String,Double>

Métricas adicionais a registar na telemetria com o evento LuisResult.

Devoluções

Análise da expressão.

Aplica-se a

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

Executa a caixa de diálogo atualContext.TurnContext.Activity através de um reconhecedor e devolve um resultado de reconhecedor com o IRecognizerConvert.

public virtual System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default, System.Collections.Generic.Dictionary<string,string> telemetryProperties = default, System.Collections.Generic.Dictionary<string,double> telemetryMetrics = default) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> -> 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.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, double> -> 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, Optional cancellationToken As CancellationToken = Nothing, Optional telemetryProperties As Dictionary(Of String, String) = Nothing, Optional telemetryMetrics As Dictionary(Of String, Double) = Nothing) As Task(Of T)

Parâmetros de Tipo Genérico

T

O tipo de resultado de reconhecimento.

Parâmetros

dialogContext
DialogContext

Contexto de caixa de diálogo.

activity
Activity

atividade a reconhecer.

cancellationToken
CancellationToken

Token de cancelamento.

telemetryProperties
Dictionary<String,String>

Propriedades adicionais a registar na telemetria com o evento LuisResult.

telemetryMetrics
Dictionary<String,Double>

Métricas adicionais a registar na telemetria com o evento LuisResult.

Devoluções

Task<T>

Análise da expressão.

Aplica-se a