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

Definition

Führt den aktuellen dialogcontext. turncontext. Activity über eine Erkennung aus und gibt einen zurück RecognizerResult .Runs current DialogContext.TurnContext.Activity through a recognizer and returns a 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)

Parameter

dialogContext
DialogContext

Der DialogContext für die aktuelle Konversation.The DialogContext for the current turn of conversation.

activity
Activity

Activity , um zu erkennen.Activity to recognize.

cancellationToken
CancellationToken

Optional, CancellationToken der Aufgabe.Optional, CancellationToken of the task.

telemetryProperties
Dictionary<String,String>

Optional, zusätzliche Eigenschaften, die in Telemetriedaten mit dem luisresult-Ereignis protokolliert werden sollen.Optional, additional properties to be logged to telemetry with the LuisResult event.

telemetryMetrics
Dictionary<String,Double>

Optional, zusätzliche Metriken, die für Telemetriedaten mit dem luisresult-Ereignis protokolliert werden sollen.Optional, additional metrics to be logged to telemetry with the LuisResult event.

Gibt zurück

Task<RecognizerResult>

Analyse von Äußerungen.Analysis of utterance.

Gilt für: