Class TextAnalyticsResult

java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsResult
Direct Known Subclasses:
AnalyzeHealthcareEntitiesResult, AnalyzeSentimentResult, DetectLanguageResult, ExtractKeyPhraseResult, ExtractSummaryResult, MultiCategoryClassifyResult, RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, SingleCategoryClassifyResult

public class TextAnalyticsResult extends Object
  • Method Details

    • getId

      public String getId()
      Get the document id.
      Returns:
      The document id.
    • getStatistics

      public TextDocumentStatistics getStatistics()
      Get the statistics of the text document.
      Returns:
      The TextDocumentStatistics statistics of the text document.
      Throws:
      TextAnalyticsException - if result has isError equals to true and when a non-error property was accessed.
    • getError

      public TextAnalyticsError getError()
      Get the error of text document.
      Returns:
      The error of text document.
    • isError

      public boolean isError()
      Get the boolean value indicates if the document result is error or not.
      Returns:
      A boolean indicates if the document result is error or not.