TextAnalyticsClient.RecognizeCustomEntitiesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RecognizeCustomEntitiesAsync(WaitUntil, IEnumerable<TextDocumentInput>, String, String, RecognizeCustomEntitiesOptions, CancellationToken) |
Runs a predictive model to identify a collection of custom named entities in the passed-in documents, and categorize those entities into custom types such as contracts or financial documents. For more information on available categories, see https://docs.microsoft.com/azure/cognitive-services/language-service/custom-named-entity-recognition/overview. 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. |
RecognizeCustomEntitiesAsync(WaitUntil, IEnumerable<String>, String, String, String, RecognizeCustomEntitiesOptions, CancellationToken) |
Runs a predictive model to identify a collection of custom named entities in the passed-in documents, and categorize those entities into custom types such as contracts or financial documents. For more information on available categories, see https://docs.microsoft.com/azure/cognitive-services/language-service/custom-named-entity-recognition/overview. 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. |
RecognizeCustomEntitiesAsync(WaitUntil, IEnumerable<TextDocumentInput>, String, String, RecognizeCustomEntitiesOptions, CancellationToken)
- Source:
- TextAnalyticsClient.cs
Runs a predictive model to identify a collection of custom named entities in the passed-in documents, and categorize those entities into custom types such as contracts or financial documents.
For more information on available categories, see https://docs.microsoft.com/azure/cognitive-services/language-service/custom-named-entity-recognition/overview.
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.AI.TextAnalytics.RecognizeCustomEntitiesOperation> RecognizeCustomEntitiesAsync (Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.TextDocumentInput> documents, string projectName, string deploymentName, Azure.AI.TextAnalytics.RecognizeCustomEntitiesOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeCustomEntitiesAsync : Azure.WaitUntil * seq<Azure.AI.TextAnalytics.TextDocumentInput> * string * string * Azure.AI.TextAnalytics.RecognizeCustomEntitiesOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.TextAnalytics.RecognizeCustomEntitiesOperation>
override this.RecognizeCustomEntitiesAsync : Azure.WaitUntil * seq<Azure.AI.TextAnalytics.TextDocumentInput> * string * string * Azure.AI.TextAnalytics.RecognizeCustomEntitiesOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.TextAnalytics.RecognizeCustomEntitiesOperation>
Public Overridable Function RecognizeCustomEntitiesAsync (waitUntil As WaitUntil, documents As IEnumerable(Of TextDocumentInput), projectName As String, deploymentName As String, Optional options As RecognizeCustomEntitiesOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizeCustomEntitiesOperation)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation.
- documents
- IEnumerable<TextDocumentInput>
The documents to analyze.
- projectName
- String
The name of the project which owns the models being consumed.
- deploymentName
- String
The name of the deployment being consumed.
- options
- RecognizeCustomEntitiesOptions
TextAnalyticsRequestOptions used to select the version of the predictive model to run, and whether statistics are returned in the response.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
A result containing the collection of entities identified for each of the documents, as well as scores indicating the confidence that a given entity correctly matches the identified substring.
Exceptions
Service returned a non-success status code.
This method is only supported in service API version 2022-05-01 and newer.
Applies to
RecognizeCustomEntitiesAsync(WaitUntil, IEnumerable<String>, String, String, String, RecognizeCustomEntitiesOptions, CancellationToken)
- Source:
- TextAnalyticsClient.cs
Runs a predictive model to identify a collection of custom named entities in the passed-in documents, and categorize those entities into custom types such as contracts or financial documents.
For more information on available categories, see https://docs.microsoft.com/azure/cognitive-services/language-service/custom-named-entity-recognition/overview.
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.AI.TextAnalytics.RecognizeCustomEntitiesOperation> RecognizeCustomEntitiesAsync (Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<string> documents, string projectName, string deploymentName, string language = default, Azure.AI.TextAnalytics.RecognizeCustomEntitiesOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RecognizeCustomEntitiesAsync : Azure.WaitUntil * seq<string> * string * string * string * Azure.AI.TextAnalytics.RecognizeCustomEntitiesOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.TextAnalytics.RecognizeCustomEntitiesOperation>
override this.RecognizeCustomEntitiesAsync : Azure.WaitUntil * seq<string> * string * string * string * Azure.AI.TextAnalytics.RecognizeCustomEntitiesOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.TextAnalytics.RecognizeCustomEntitiesOperation>
Public Overridable Function RecognizeCustomEntitiesAsync (waitUntil As WaitUntil, documents As IEnumerable(Of String), projectName As String, deploymentName As String, Optional language As String = Nothing, Optional options As RecognizeCustomEntitiesOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizeCustomEntitiesOperation)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation.
- documents
- IEnumerable<String>
The documents to analyze.
- projectName
- String
The name of the project which owns the models being consumed.
- deploymentName
- String
The name of the deployment being consumed.
- language
- String
The language that all the documents are 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".
- options
- RecognizeCustomEntitiesOptions
TextAnalyticsRequestOptions used to select the version of the predictive model to run, and whether statistics are returned in the response.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
A result containing the collection of entities identified for each of the documents, as well as scores indicating the confidence that a given entity correctly matches the identified substring.
Exceptions
Service returned a non-success status code.
This method is only supported in service API version 2022-05-01 and newer.
Applies to
Azure SDK for .NET