Class RecognizePiiEntitiesResult
java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsResult
com.azure.ai.textanalytics.models.RecognizePiiEntitiesResult
The
RecognizePiiEntitiesResult
model.-
Constructor Summary
ConstructorDescriptionRecognizePiiEntitiesResult
(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, PiiEntityCollection entities) Creates aRecognizePiiEntitiesResult
model that describes recognized PII entities result. -
Method Summary
Modifier and TypeMethodDescriptionGet the detectedLanguage property: If 'language' is set to 'auto' for the document in the request this field will contain an object of the language detected for this document.Gets anIterableStream
ofPiiEntity
.Methods inherited from class com.azure.ai.textanalytics.models.TextAnalyticsResult
getError, getId, getStatistics, isError
-
Constructor Details
-
RecognizePiiEntitiesResult
public RecognizePiiEntitiesResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, PiiEntityCollection entities) Creates aRecognizePiiEntitiesResult
model that describes recognized PII entities result.- Parameters:
id
- Unique, non-empty document identifier.textDocumentStatistics
- The text document statistics.error
- The document error.entities
- APiiEntityCollection
contains entities and warnings.
-
-
Method Details
-
getEntities
Gets anIterableStream
ofPiiEntity
.- Returns:
- An
IterableStream
ofPiiEntity
. - Throws:
TextAnalyticsException
- if result hasisError
equals to true and when a non-error property was accessed.
-
getDetectedLanguage
Get the detectedLanguage property: If 'language' is set to 'auto' for the document in the request this field will contain an object of the language detected for this document.- Returns:
- the detectedLanguage value.
-