Class AbstractSummaryResult
java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsResult
com.azure.ai.textanalytics.models.AbstractSummaryResult
The
AbstractSummaryResult
model.-
Constructor Summary
ConstructorDescriptionAbstractSummaryResult
(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) Creates aAbstractSummaryResult
model that describes the abstractive summarization 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.com.azure.core.util.IterableStream<AbstractiveSummary>
Gets the abstractive summaries of document.com.azure.core.util.IterableStream<TextAnalyticsWarning>
Gets theIterableStream
ofText Analytics warnings
.Methods inherited from class com.azure.ai.textanalytics.models.TextAnalyticsResult
getError, getId, getStatistics, isError
-
Constructor Details
-
AbstractSummaryResult
public AbstractSummaryResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) Creates aAbstractSummaryResult
model that describes the abstractive summarization result.- Parameters:
id
- Unique, non-empty document identifier.textDocumentStatistics
- The text document statistics.error
- The document error.
-
-
Method Details
-
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.
-
getSummaries
Gets the abstractive summaries of document.- Returns:
- The abstractive summaries of document.
- Throws:
TextAnalyticsException
- if result hasisError
equals to true and when a non-error property was accessed.
-
getWarnings
Gets theIterableStream
ofText Analytics warnings
.- Returns:
IterableStream
ofTextAnalyticsWarning
.
-