Dela via


TextAnalyticsClient.RecognizeLinkedEntitiesAsync Method

Definition

Runs a predictive model to identify a collection of entities found in the passed-in document, and include information linking the entities to their corresponding entries in a well-known knowledge base.

For a list of languages supported by this operation, see https://aka.ms/talangs.

For document length limits, maximum batch size, and supported text encoding, see https://aka.ms/azsdk/textanalytics/data-limits.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.TextAnalytics.LinkedEntityCollection>> RecognizeLinkedEntitiesAsync (string document, string language = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeLinkedEntitiesAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.TextAnalytics.LinkedEntityCollection>>
override this.RecognizeLinkedEntitiesAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.TextAnalytics.LinkedEntityCollection>>
Public Overridable Function RecognizeLinkedEntitiesAsync (document As String, Optional language As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LinkedEntityCollection))

Parameters

document
String

The document to analyze.

language
String

The language that the document is written in. If unspecified, this value will be set to the default language in DefaultLanguage in the request sent to the service. If set to an empty string, the service will apply a model where the language is explicitly set to "None".

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A result containing the collection of linked entities identified in the document, as well as scores indicating the confidence that the entity correctly matches the identified substring.

Exceptions

Service returned a non-success status code.

Applies to