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
TheTextAnalyticsResult
model.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextAnalyticsError
getError()
Get the error of text document.String
getId()
Get the document id.TextDocumentStatistics
getStatistics()
Get the statistics of the text document.boolean
isError()
Get the boolean value indicates if the document result is error or not.
-
-
-
Method Detail
-
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 hasisError
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.
-
-