Class DocumentSentiment

java.lang.Object
com.azure.ai.textanalytics.models.DocumentSentiment

public final class DocumentSentiment extends Object
The DocumentSentiment model that contains sentiment label of a document, confidence score of the sentiment label, and a list of SentenceSentiment.
  • Constructor Details

    • DocumentSentiment

      public DocumentSentiment(TextSentiment sentiment, SentimentConfidenceScores confidenceScores, com.azure.core.util.IterableStream<SentenceSentiment> sentences, com.azure.core.util.IterableStream<TextAnalyticsWarning> warnings)
      Creates a DocumentSentiment model that describes the sentiment of the document.
      Parameters:
      sentiment - The sentiment label of the document.
      confidenceScores - The sentiment confidence score (Softmax score) between 0 and 1, for each sentiment label. Higher values signify higher confidence.
      sentences - An IterableStream of sentence sentiments.
      warnings - An IterableStream of TextAnalyticsWarning.
  • Method Details