Class ExtractSummaryResult
java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsResult
com.azure.ai.textanalytics.models.ExtractSummaryResult
The
ExtractSummaryResult
model.-
Constructor Summary
ConstructorDescriptionExtractSummaryResult
(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) Creates aExtractSummaryResult
model that describes extractive 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<SummarySentence>
Get the extractive summarization sentence collection.com.azure.core.util.IterableStream<TextAnalyticsWarning>
Get theIterableStream
ofText Analytics warnings
.Methods inherited from class com.azure.ai.textanalytics.models.TextAnalyticsResult
getError, getId, getStatistics, isError
-
Constructor Details
-
ExtractSummaryResult
public ExtractSummaryResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error) Creates aExtractSummaryResult
model that describes extractive 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.
-
getSentences
Get the extractive summarization sentence collection.- Returns:
- The extractive summarization sentence collection.
- Throws:
TextAnalyticsException
- if result hasisError
equals to true and when a non-error property was accessed.
-
getWarnings
Get theIterableStream
ofText Analytics warnings
.- Returns:
IterableStream
ofTextAnalyticsWarning
.
-