Dela via


TextAnalyticsModelFactory.PiiEntity Method

Definition

Initializes a new instance of PiiEntity for mocking purposes.

public static Azure.AI.TextAnalytics.PiiEntity PiiEntity (string text, string category, string subCategory, double score, int offset, int length);
static member PiiEntity : string * string * string * double * int * int -> Azure.AI.TextAnalytics.PiiEntity
Public Shared Function PiiEntity (text As String, category As String, subCategory As String, score As Double, offset As Integer, length As Integer) As PiiEntity

Parameters

text
String

Sets the Text property.

category
String

Sets the Category property.

subCategory
String

Sets the SubCategory property.

score
Double

Sets the ConfidenceScore property.

offset
Int32

Sets the Offset property.

length
Int32

Sets the Length property.

Returns

A new instance of PiiEntity for mocking purposes.

Applies to