Class SentimentConfidenceScores

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

public final class SentimentConfidenceScores extends Object
The SentimentConfidenceScores model
  • Constructor Summary

    Constructors
    Constructor
    Description
    SentimentConfidenceScores(double negativeScore, double neutralScore, double positiveScore)
    Creates a SentimentConfidenceScores model that describes the sentiment score of the sentiment label.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    The negative score value, range in between 0 and 1.0.
    double
    The neutral score value, range in between 0 and 1.0.
    double
    The positive score value, range in between 0 and 1.0.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SentimentConfidenceScores

      public SentimentConfidenceScores(double negativeScore, double neutralScore, double positiveScore)
      Creates a SentimentConfidenceScores model that describes the sentiment score of the sentiment label.
      Parameters:
      negativeScore - The negative score value, range in between 0 and 1.0.
      neutralScore - The neutral score value, range in between 0 and 1.0.
      positiveScore - The positive score value, range in between 0 and 1.0.
  • Method Details

    • getNegative

      public double getNegative()
      The negative score value, range in between 0 and 1.0.
      Returns:
      the negative score value.
    • getNeutral

      public double getNeutral()
      The neutral score value, range in between 0 and 1.0.
      Returns:
      The neutral score value.
    • getPositive

      public double getPositive()
      The positive score value, range in between 0 and 1.0.
      Returns:
      The positive score value.