Delen via


TextAnalyticsModelFactory.PiiEntityCollection Method

Definition

Initializes a new instance of PiiEntityCollection for mocking purposes.

public static Azure.AI.TextAnalytics.PiiEntityCollection PiiEntityCollection (System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.PiiEntity> entities, string redactedText, System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.TextAnalyticsWarning> warnings = default);
static member PiiEntityCollection : seq<Azure.AI.TextAnalytics.PiiEntity> * string * seq<Azure.AI.TextAnalytics.TextAnalyticsWarning> -> Azure.AI.TextAnalytics.PiiEntityCollection
Public Shared Function PiiEntityCollection (entities As IEnumerable(Of PiiEntity), redactedText As String, Optional warnings As IEnumerable(Of TextAnalyticsWarning) = Nothing) As PiiEntityCollection

Parameters

entities
IEnumerable<PiiEntity>

Sets the collection of PiiEntity.

redactedText
String

Sets the RedactedText property.

warnings
IEnumerable<TextAnalyticsWarning>

Sets the Warnings property.

Returns

A new instance of PiiEntityCollection for mocking purposes.

Applies to