public class SentimentScore
extends java.lang.Object
implements java.io.Serializable
Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.
Constructor and Description |
---|
SentimentScore() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Float |
getMixed()
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
MIXED sentiment. |
java.lang.Float |
getNegative()
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
NEGATIVE sentiment. |
java.lang.Float |
getNeutral()
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
NEUTRAL sentiment. |
java.lang.Float |
getPositive()
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
POSITIVE sentiment. |
int |
hashCode() |
void |
setMixed(java.lang.Float mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
MIXED sentiment. |
void |
setNegative(java.lang.Float negative)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
NEGATIVE sentiment. |
void |
setNeutral(java.lang.Float neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
NEUTRAL sentiment. |
void |
setPositive(java.lang.Float positive)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
POSITIVE sentiment. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SentimentScore |
withMixed(java.lang.Float mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
MIXED sentiment. |
SentimentScore |
withNegative(java.lang.Float negative)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
NEGATIVE sentiment. |
SentimentScore |
withNeutral(java.lang.Float neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
NEUTRAL sentiment. |
SentimentScore |
withPositive(java.lang.Float positive)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the
POSITIVE sentiment. |
public java.lang.Float getPositive()
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the POSITIVE
sentiment.
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the POSITIVE
sentiment.
public void setPositive(java.lang.Float positive)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the POSITIVE
sentiment.
positive
-
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the POSITIVE
sentiment.
public SentimentScore withPositive(java.lang.Float positive)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the POSITIVE
sentiment.
Returns a reference to this object so that method calls can be chained together.
positive
-
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the POSITIVE
sentiment.
public java.lang.Float getNegative()
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the NEGATIVE
sentiment.
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the NEGATIVE
sentiment.
public void setNegative(java.lang.Float negative)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the NEGATIVE
sentiment.
negative
-
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the NEGATIVE
sentiment.
public SentimentScore withNegative(java.lang.Float negative)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the NEGATIVE
sentiment.
Returns a reference to this object so that method calls can be chained together.
negative
-
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the NEGATIVE
sentiment.
public java.lang.Float getNeutral()
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the NEUTRAL
sentiment.
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the NEUTRAL
sentiment.
public void setNeutral(java.lang.Float neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the NEUTRAL
sentiment.
neutral
-
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the NEUTRAL
sentiment.
public SentimentScore withNeutral(java.lang.Float neutral)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the NEUTRAL
sentiment.
Returns a reference to this object so that method calls can be chained together.
neutral
-
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the NEUTRAL
sentiment.
public java.lang.Float getMixed()
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the MIXED
sentiment.
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the MIXED
sentiment.
public void setMixed(java.lang.Float mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the MIXED
sentiment.
mixed
-
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the MIXED
sentiment.
public SentimentScore withMixed(java.lang.Float mixed)
The level of confidence that Amazon Comprehend has in the accuracy of its
detection of the MIXED
sentiment.
Returns a reference to this object so that method calls can be chained together.
mixed
-
The level of confidence that Amazon Comprehend has in the
accuracy of its detection of the MIXED
sentiment.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.