Class PiiEntityCollection

java.lang.Object
com.azure.core.util.IterableStream<PiiEntity>
com.azure.ai.textanalytics.models.PiiEntityCollection
All Implemented Interfaces:
Iterable<PiiEntity>

public final class PiiEntityCollection extends com.azure.core.util.IterableStream<PiiEntity>
  • Constructor Details

    • PiiEntityCollection

      public PiiEntityCollection(com.azure.core.util.IterableStream<PiiEntity> entities, String redactedText, com.azure.core.util.IterableStream<TextAnalyticsWarning> warnings)
      Creates a PiiEntityCollection model that describes a Personally Identifiable Information entities collection including warnings.
      Parameters:
      entities - An IterableStream of Personally Identifiable Information entities.
      redactedText - The text of the input document with all of the PII information redacted out.
      warnings - An IterableStream of warnings.
  • Method Details

    • getWarnings

      public com.azure.core.util.IterableStream<TextAnalyticsWarning> getWarnings()
      Get the IterableStream of Text Analytics warnings.
      Returns:
      IterableStream of TextAnalyticsWarning.
    • getRedactedText

      public String getRedactedText()
      Get the property redactedText value. The text of the input document with all of the PII information redacted out. Only returned for API version v3.1 and newer.
      Returns:
      The text of the input document with all of the PII information redacted out.