Udostępnij za pośrednictwem


TextAnalyticsClient.RecognizeLinkedEntities 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 Azure.Response<Azure.AI.TextAnalytics.LinkedEntityCollection> RecognizeLinkedEntities (string document, string language = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeLinkedEntities : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.TextAnalytics.LinkedEntityCollection>
override this.RecognizeLinkedEntities : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.TextAnalytics.LinkedEntityCollection>
Public Overridable Function RecognizeLinkedEntities (document As String, Optional language As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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