PiiEntity Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. PiiEntity
- com.
public final class PiiEntity
The PiiEntity model.
Constructor Summary
| Constructor | Description |
|---|---|
| PiiEntity() |
Constructs a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Pii |
getCategory()
Gets the category property: Categorized entity category, such as Person/Location/Org/SSN etc. |
| double |
getConfidenceScore()
Gets the score property: Confidence score between 0 and 1 of the recognized entity. |
| int |
getLength()
Gets the length of entity text. |
| int |
getOffset()
Gets the offset property: the start position for the entity text. |
| String |
getSubcategory()
Gets the subcategory property: Categorized entity subcategory, such as Medical/Stock exchange/Sports etc. |
| String |
getText()
Gets the text property: PII entity text as appears in the request. |
Methods inherited from java.lang.Object
Constructor Details
PiiEntity
public PiiEntity()
Constructs a PiiEntity model.
Method Details
getCategory
public PiiEntityCategory getCategory()
Gets the category property: Categorized entity category, such as Person/Location/Org/SSN etc.
Returns:
category value.getConfidenceScore
public double getConfidenceScore()
Gets the score property: Confidence score between 0 and 1 of the recognized entity.
Returns:
confidenceScore value.getLength
public int getLength()
Gets the length of entity text.
Returns:
getOffset
public int getOffset()
Gets the offset property: the start position for the entity text.
Returns:
offset value.getSubcategory
public String getSubcategory()
Gets the subcategory property: Categorized entity subcategory, such as Medical/Stock exchange/Sports etc.
Returns:
subcategory value.getText
public String getText()
Gets the text property: PII entity text as appears in the request.
Returns:
text value.