Class PhiEntity
java.lang.Object
com.azure.health.deidentification.models.PhiEntity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PhiEntity>
PHI Entity tag in the input.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PhiEntityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PhiEntity from the JsonReader.Get the category property: PHI Category of the entity.Get the confidenceScore property: Confidence score of the category match.Get the length property: Length of the input text.Get the offset property: Starting index of the location from within the input text.getText()Get the text property: Text of the entity.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getCategory
Get the category property: PHI Category of the entity.- Returns:
- the category value.
-
getOffset
Get the offset property: Starting index of the location from within the input text.- Returns:
- the offset value.
-
getLength
Get the length property: Length of the input text.- Returns:
- the length value.
-
getText
Get the text property: Text of the entity.- Returns:
- the text value.
-
getConfidenceScore
Get the confidenceScore property: Confidence score of the category match.- Returns:
- the confidenceScore value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PhiEntity>- Throws:
IOException
-
fromJson
Reads an instance of PhiEntity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PhiEntity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the PhiEntity.
-