@Generated(value="software.amazon.awssdk:codegen") public class SentimentScore extends Object implements StructuredPojo, ToCopyableBuilder<SentimentScore.Builder,SentimentScore>
Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SentimentScore.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SentimentScore.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
Float |
mixed()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXED
sentiment. |
Float |
negative()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVE
sentiment. |
Float |
neutral()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRAL
sentiment. |
Float |
positive()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
POSITIVE
sentiment. |
static Class<? extends SentimentScore.Builder> |
serializableBuilderClass() |
SentimentScore.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic Float positive()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE
sentiment.
POSITIVE sentiment.public Float negative()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE
sentiment.
NEGATIVE sentiment.public Float neutral()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL
sentiment.
NEUTRAL sentiment.public Float mixed()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED
sentiment.
MIXED sentiment.public SentimentScore.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<SentimentScore.Builder,SentimentScore>public static SentimentScore.Builder builder()
public static Class<? extends SentimentScore.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.