Partilhar via


CrossTrainedRecognizerSet.RecognizeAsync Método

Definição

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

public override 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);
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 Overrides 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

O DialogContext para a viragem atual da conversação.

activity
Activity

Activity para reconhecer.

cancellationToken
CancellationToken

Opcional, CancellationToken da tarefa.

telemetryProperties
Dictionary<String,String>

Opcional, propriedades adicionais a serem registadas na telemetria com o evento LuisResult.

telemetryMetrics
Dictionary<String,Double>

Opcional, métricas adicionais a serem registadas na telemetria com o evento LuisResult.

Devoluções

Análise da expressão.

Aplica-se a