@Generated(value="software.amazon.awssdk:codegen") public final class TargetedSentimentMention extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetedSentimentMention.Builder,TargetedSentimentMention>
Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.
For more information about targeted sentiment, see Targeted sentiment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TargetedSentimentMention.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
beginOffset()
The offset into the document text where the mention begins.
|
static TargetedSentimentMention.Builder |
builder() |
Integer |
endOffset()
The offset into the document text where the mention ends.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
Float |
groupScore()
The confidence that all the entities mentioned in the group relate to the same entity.
|
int |
hashCode() |
MentionSentiment |
mentionSentiment()
Contains the sentiment and sentiment score for the mention.
|
Float |
score()
Model confidence that the entity is relevant.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TargetedSentimentMention.Builder> |
serializableBuilderClass() |
String |
text()
The text in the document that identifies the entity.
|
TargetedSentimentMention.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TargetedSentimentEntityType |
type()
The type of the entity.
|
String |
typeAsString()
The type of the entity.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Float score()
Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
public final Float groupScore()
The confidence that all the entities mentioned in the group relate to the same entity.
public final String text()
The text in the document that identifies the entity.
public final TargetedSentimentEntityType type()
The type of the entity. Amazon Comprehend supports a variety of entity types.
If the service returns an enum value that is not available in the current SDK version, type will return
TargetedSentimentEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from typeAsString().
TargetedSentimentEntityTypepublic final String typeAsString()
The type of the entity. Amazon Comprehend supports a variety of entity types.
If the service returns an enum value that is not available in the current SDK version, type will return
TargetedSentimentEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from typeAsString().
TargetedSentimentEntityTypepublic final MentionSentiment mentionSentiment()
Contains the sentiment and sentiment score for the mention.
public final Integer beginOffset()
The offset into the document text where the mention begins.
public final Integer endOffset()
The offset into the document text where the mention ends.
public TargetedSentimentMention.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TargetedSentimentMention.Builder,TargetedSentimentMention>public static TargetedSentimentMention.Builder builder()
public static Class<? extends TargetedSentimentMention.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.