TextAnalyticsModelFactory.KeyPhraseCollection Method

Definition

Initializes a new instance of KeyPhraseCollection for mocking purposes.

public static Azure.AI.TextAnalytics.KeyPhraseCollection KeyPhraseCollection (System.Collections.Generic.IList<string> keyPhrases, System.Collections.Generic.IList<Azure.AI.TextAnalytics.TextAnalyticsWarning> warnings = default);
static member KeyPhraseCollection : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Azure.AI.TextAnalytics.TextAnalyticsWarning> -> Azure.AI.TextAnalytics.KeyPhraseCollection
Public Shared Function KeyPhraseCollection (keyPhrases As IList(Of String), Optional warnings As IList(Of TextAnalyticsWarning) = Nothing) As KeyPhraseCollection

Parameters

keyPhrases
IList<String>

Sets the collection of String key phrases.

warnings
IList<TextAnalyticsWarning>

Sets the Warnings property.

Returns

A new instance of KeyPhraseCollection for mocking purposes.

Applies to