public static interface TargetedSentimentMention.Builder extends SdkPojo, CopyableBuilder<TargetedSentimentMention.Builder,TargetedSentimentMention>
| Modifier and Type | Method and Description |
|---|---|
TargetedSentimentMention.Builder |
beginOffset(Integer beginOffset)
The offset into the document text where the mention begins.
|
TargetedSentimentMention.Builder |
endOffset(Integer endOffset)
The offset into the document text where the mention ends.
|
TargetedSentimentMention.Builder |
groupScore(Float groupScore)
The confidence that all the entities mentioned in the group relate to the same entity.
|
default TargetedSentimentMention.Builder |
mentionSentiment(Consumer<MentionSentiment.Builder> mentionSentiment)
Contains the sentiment and sentiment score for the mention.
|
TargetedSentimentMention.Builder |
mentionSentiment(MentionSentiment mentionSentiment)
Contains the sentiment and sentiment score for the mention.
|
TargetedSentimentMention.Builder |
score(Float score)
Model confidence that the entity is relevant.
|
TargetedSentimentMention.Builder |
text(String text)
The text in the document that identifies the entity.
|
TargetedSentimentMention.Builder |
type(String type)
The type of the entity.
|
TargetedSentimentMention.Builder |
type(TargetedSentimentEntityType type)
The type of the entity.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTargetedSentimentMention.Builder score(Float score)
Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
score - Model confidence that the entity is relevant. Value range is zero to one, where one is highest
confidence.TargetedSentimentMention.Builder groupScore(Float groupScore)
The confidence that all the entities mentioned in the group relate to the same entity.
groupScore - The confidence that all the entities mentioned in the group relate to the same entity.TargetedSentimentMention.Builder text(String text)
The text in the document that identifies the entity.
text - The text in the document that identifies the entity.TargetedSentimentMention.Builder type(String type)
The type of the entity. Amazon Comprehend supports a variety of entity types.
type - The type of the entity. Amazon Comprehend supports a variety of entity types.TargetedSentimentEntityType,
TargetedSentimentEntityTypeTargetedSentimentMention.Builder type(TargetedSentimentEntityType type)
The type of the entity. Amazon Comprehend supports a variety of entity types.
type - The type of the entity. Amazon Comprehend supports a variety of entity types.TargetedSentimentEntityType,
TargetedSentimentEntityTypeTargetedSentimentMention.Builder mentionSentiment(MentionSentiment mentionSentiment)
Contains the sentiment and sentiment score for the mention.
mentionSentiment - Contains the sentiment and sentiment score for the mention.default TargetedSentimentMention.Builder mentionSentiment(Consumer<MentionSentiment.Builder> mentionSentiment)
Contains the sentiment and sentiment score for the mention.
This is a convenience method that creates an instance of theMentionSentiment.Builder avoiding the
need to create one manually via MentionSentiment.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to mentionSentiment(MentionSentiment).
mentionSentiment - a consumer that will call methods on MentionSentiment.BuildermentionSentiment(MentionSentiment)TargetedSentimentMention.Builder beginOffset(Integer beginOffset)
The offset into the document text where the mention begins.
beginOffset - The offset into the document text where the mention begins.TargetedSentimentMention.Builder endOffset(Integer endOffset)
The offset into the document text where the mention ends.
endOffset - The offset into the document text where the mention ends.Copyright © 2023. All rights reserved.