Share via


TextEntityRecognizer.RecognizeEntitiesAsync Method

Definition

Recognizes entities from an Entity list.

public override System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Bot.Schema.Entity>> RecognizeEntitiesAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, string text, string locale, System.Collections.Generic.IEnumerable<Microsoft.Bot.Schema.Entity> entities, System.Threading.CancellationToken cancellationToken = default);
override this.RecognizeEntitiesAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * string * string * seq<Microsoft.Bot.Schema.Entity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Bot.Schema.Entity>>
Public Overrides Function RecognizeEntitiesAsync (dialogContext As DialogContext, text As String, locale As String, entities As IEnumerable(Of Entity), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of Entity))

Parameters

dialogContext
DialogContext

The DialogContext for the current turn of conversation.

text
String

Text to recognize.

locale
String

Locale to use.

entities
IEnumerable<Entity>

The enumerated Entity to be recognized.

cancellationToken
CancellationToken

Optional, the CancellationToken from the task.

Returns

Recognized Entity list.

Applies to