TextAnalyticsClient.ExtractKeyPhrasesBatch 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
ExtractKeyPhrasesBatch(IEnumerable<TextDocumentInput>, TextAnalyticsRequestOptions, CancellationToken) |
Runs a model to identify a collection of significant phrases found in the passed-in documents. For example, for the document "The food was delicious and there were wonderful staff", the API returns the main talking points: "food" and "wonderful staff". 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. |
ExtractKeyPhrasesBatch(IEnumerable<String>, String, TextAnalyticsRequestOptions, CancellationToken) |
Runs a model to identify a collection of significant phrases found in the passed-in documents. For example, for the document "The food was delicious and there were wonderful staff", the API returns the main talking points: "food" and "wonderful staff". 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. |
ExtractKeyPhrasesBatch(IEnumerable<TextDocumentInput>, TextAnalyticsRequestOptions, CancellationToken)
- Source:
- TextAnalyticsClient.cs
Runs a model to identify a collection of significant phrases found in the passed-in documents.
For example, for the document "The food was delicious and there were wonderful staff", the API returns the main talking points: "food" and "wonderful staff".
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.ExtractKeyPhrasesResultCollection> ExtractKeyPhrasesBatch (System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.TextDocumentInput> documents, Azure.AI.TextAnalytics.TextAnalyticsRequestOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExtractKeyPhrasesBatch : seq<Azure.AI.TextAnalytics.TextDocumentInput> * Azure.AI.TextAnalytics.TextAnalyticsRequestOptions * System.Threading.CancellationToken -> Azure.Response<Azure.AI.TextAnalytics.ExtractKeyPhrasesResultCollection>
override this.ExtractKeyPhrasesBatch : seq<Azure.AI.TextAnalytics.TextDocumentInput> * Azure.AI.TextAnalytics.TextAnalyticsRequestOptions * System.Threading.CancellationToken -> Azure.Response<Azure.AI.TextAnalytics.ExtractKeyPhrasesResultCollection>
Public Overridable Function ExtractKeyPhrasesBatch (documents As IEnumerable(Of TextDocumentInput), Optional options As TextAnalyticsRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ExtractKeyPhrasesResultCollection)
Parameters
- documents
- IEnumerable<TextDocumentInput>
The documents to analyze.
- options
- TextAnalyticsRequestOptions
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 key phrases identified in each of the documents.
Exceptions
DisableServiceLogs is only supported in service API version v3.1 and newer.
Service returned a non-success status code.
Applies to
ExtractKeyPhrasesBatch(IEnumerable<String>, String, TextAnalyticsRequestOptions, CancellationToken)
- Source:
- TextAnalyticsClient.cs
Runs a model to identify a collection of significant phrases found in the passed-in documents.
For example, for the document "The food was delicious and there were wonderful staff", the API returns the main talking points: "food" and "wonderful staff".
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.ExtractKeyPhrasesResultCollection> ExtractKeyPhrasesBatch (System.Collections.Generic.IEnumerable<string> documents, string language = default, Azure.AI.TextAnalytics.TextAnalyticsRequestOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExtractKeyPhrasesBatch : seq<string> * string * Azure.AI.TextAnalytics.TextAnalyticsRequestOptions * System.Threading.CancellationToken -> Azure.Response<Azure.AI.TextAnalytics.ExtractKeyPhrasesResultCollection>
override this.ExtractKeyPhrasesBatch : seq<string> * string * Azure.AI.TextAnalytics.TextAnalyticsRequestOptions * System.Threading.CancellationToken -> Azure.Response<Azure.AI.TextAnalytics.ExtractKeyPhrasesResultCollection>
Public Overridable Function ExtractKeyPhrasesBatch (documents As IEnumerable(Of String), Optional language As String = Nothing, Optional options As TextAnalyticsRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ExtractKeyPhrasesResultCollection)
Parameters
- documents
- IEnumerable<String>
The documents to analyze.
- language
- String
The language that all the documents are written in. If unspecified, this value will be set to the default language in TextAnalyticsClientOptions 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
- TextAnalyticsRequestOptions
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 key phrases identified in each of the documents.
Exceptions
DisableServiceLogs is only supported in service API version v3.1 and newer.
Service returned a non-success status code.
Applies to
Azure SDK for .NET