LuisRecognizer.RecognizeAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
RecognizeAsync(ITurnContext, CancellationToken)
Voert een uiting uit door een herkender en geeft een generieke herkender terug.
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)
Parameters
- turnContext
- ITurnContext
Zet de context om.
- cancellationToken
- CancellationToken
Annuleringstoken.
Retouren
Analyse van uiting.
Implementeringen
Van toepassing op
RecognizeAsync(ITurnContext, LuisPredictionOptions, CancellationToken)
Voert een uiting uit door een herkender en geeft een generieke herkender terug.
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)
Parameters
- turnContext
- ITurnContext
Zet de context om.
- predictionOptions
- LuisPredictionOptions
Een LuisPredictionOptions instantie die door de call wordt gebruikt. Deze parameter wordt samengevoegd met de standaard LuisPredictionOptions die in de constructor wordt doorgegeven.
- cancellationToken
- CancellationToken
Annuleringstoken.
Retouren
Analyse van uiting.
Van toepassing op
RecognizeAsync(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)
Geef de resultaten van de analyse terug (Voorgestelde acties en intenties).
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)
Parameters
- turnContext
- ITurnContext
Contextobject met informatie voor één gesprek met een gebruiker.
- telemetryProperties
- Dictionary<String,String>
Extra eigenschappen die met het LuisResult-evenement worden geregistreerd in telemetrie.
- telemetryMetrics
- Dictionary<String,Double>
Extra statistieken die worden vastgelegd aan de telemetrie met het LuisResult-evenement.
- cancellationToken
- CancellationToken
Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.
Retouren
De LUIS-resultaten van de analyse van de huidige berichttekst in de contextactiviteit van de huidige beurt.
Implementeringen
Van toepassing op
RecognizeAsync(ITurnContext, LuisPredictionOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)
Geef de resultaten van de analyse terug (Voorgestelde acties en intenties).
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)
Parameters
- turnContext
- ITurnContext
Contextobject met informatie voor één gesprek met een gebruiker.
- predictionOptions
- LuisPredictionOptions
Een LuisPredictionOptions instantie die door de call wordt gebruikt. Deze parameter wordt samengevoegd met de standaard LuisPredictionOptions die in de constructor wordt doorgegeven.
- telemetryProperties
- Dictionary<String,String>
Extra eigenschappen die met het LuisResult-evenement worden geregistreerd in telemetrie.
- telemetryMetrics
- Dictionary<String,Double>
Extra statistieken die worden vastgelegd aan de telemetrie met het LuisResult-evenement.
- cancellationToken
- CancellationToken
Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.
Retouren
De LUIS-resultaten van de analyse van de huidige berichttekst in de contextactiviteit van de huidige beurt.
Van toepassing op
RecognizeAsync<T>(ITurnContext, CancellationToken)
Voert een uiting uit door een herkender en geeft een sterk getypeerd herkenerresultaat terug.
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)
Type parameters
- T
Het type herkenningsresultaat.
Parameters
- turnContext
- ITurnContext
Zet de context om.
- cancellationToken
- CancellationToken
Annuleringstoken.
Retouren
Analyse van uiting.
Implementeringen
Van toepassing op
RecognizeAsync<T>(ITurnContext, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)
Geef de resultaten van de analyse terug (Voorgestelde acties en intenties).
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)
Type parameters
- T
Het type herkenningsresultaat.
Parameters
- turnContext
- ITurnContext
Contextobject met informatie voor één gesprek met een gebruiker.
- telemetryProperties
- Dictionary<String,String>
Extra eigenschappen die met het LuisResult-evenement worden geregistreerd in telemetrie.
- telemetryMetrics
- Dictionary<String,Double>
Extra statistieken die worden vastgelegd aan de telemetrie met het LuisResult-evenement.
- cancellationToken
- CancellationToken
Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.
Retouren
De LUIS-resultaten van de analyse van de huidige berichttekst in de contextactiviteit van de huidige beurt.
Implementeringen
Van toepassing op
RecognizeAsync<T>(ITurnContext, LuisPredictionOptions, Dictionary<String,String>, Dictionary<String,Double>, CancellationToken)
Geef de resultaten van de analyse terug (Voorgestelde acties en intenties).
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)
Type parameters
- T
Het type herkenningsresultaat.
Parameters
- turnContext
- ITurnContext
Contextobject met informatie voor één gesprek met een gebruiker.
- predictionOptions
- LuisPredictionOptions
Een LuisPredictionOptions instantie die door de call wordt gebruikt. Deze parameter wordt samengevoegd met de standaard LuisPredictionOptions die in de constructor wordt doorgegeven.
- telemetryProperties
- Dictionary<String,String>
Extra eigenschappen die met het LuisResult-evenement worden geregistreerd in telemetrie.
- telemetryMetrics
- Dictionary<String,Double>
Extra statistieken die worden vastgelegd aan de telemetrie met het LuisResult-evenement.
- cancellationToken
- CancellationToken
Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.
Retouren
De LUIS-resultaten van de analyse van de huidige berichttekst in de contextactiviteit van de huidige beurt.