SentimentConfidenceScores Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. SentimentConfidenceScores
- com.
public final class SentimentConfidenceScores
The SentimentConfidenceScores model
Constructor Summary
| Constructor | Description |
|---|---|
| SentimentConfidenceScores(double negativeScore, double neutralScore, double positiveScore) |
Creates a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| double |
getNegative()
The negative score value, range in between 0 and 1.0. |
| double |
getNeutral()
The neutral score value, range in between 0 and 1.0. |
| double |
getPositive()
The positive score value, range in between 0 and 1.0. |
Methods inherited from java.lang.Object
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:
Method Details
getNegative
public double getNegative()
The negative score value, range in between 0 and 1.0.
Returns:
getNeutral
public double getNeutral()
The neutral score value, range in between 0 and 1.0.
Returns:
getPositive
public double getPositive()
The positive score value, range in between 0 and 1.0.
Returns: