Compartilhar via


Recognizer.RecognizeAsync Método

Definição

Sobrecargas

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

Executa DialogContext.TurnContext.Activity atual por meio de um reconhecedor e retorna um resultado de reconhecedor genérico.

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

Executa DialogContext.TurnContext.Activity atual por meio de um reconhecedor e retorna um resultado de reconhecedor fortemente tipado usando IRecognizerConvert.

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

Executa DialogContext.TurnContext.Activity atual por meio de um reconhecedor e retorna 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 da caixa de diálogo.

activity
Activity

atividade a ser reconhecida.

cancellationToken
CancellationToken

Token de cancelamento.

telemetryProperties
Dictionary<String,String>

Propriedades adicionais a serem registradas na telemetria com o evento LuisResult.

telemetryMetrics
Dictionary<String,Double>

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

Retornos

Análise do enunciado.

Aplica-se a

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

Executa DialogContext.TurnContext.Activity atual por meio de um reconhecedor e retorna um resultado de reconhecedor fortemente tipado usando 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

T

O tipo de resultado de reconhecimento.

Parâmetros

dialogContext
DialogContext

Contexto da caixa de diálogo.

activity
Activity

atividade a ser reconhecida.

cancellationToken
CancellationToken

Token de cancelamento.

telemetryProperties
Dictionary<String,String>

Propriedades adicionais a serem registradas na telemetria com o evento LuisResult.

telemetryMetrics
Dictionary<String,Double>

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

Retornos

Task<T>

Análise do enunciado.

Aplica-se a