public static interface TargetedSentimentEntity.Builder extends SdkPojo, CopyableBuilder<TargetedSentimentEntity.Builder,TargetedSentimentEntity>
| Modifier and Type | Method and Description |
|---|---|
TargetedSentimentEntity.Builder |
descriptiveMentionIndex(Collection<Integer> descriptiveMentionIndex)
One or more index into the Mentions array that provides the best name for the entity group.
|
TargetedSentimentEntity.Builder |
descriptiveMentionIndex(Integer... descriptiveMentionIndex)
One or more index into the Mentions array that provides the best name for the entity group.
|
TargetedSentimentEntity.Builder |
mentions(Collection<TargetedSentimentMention> mentions)
An array of mentions of the entity in the document.
|
TargetedSentimentEntity.Builder |
mentions(Consumer<TargetedSentimentMention.Builder>... mentions)
An array of mentions of the entity in the document.
|
TargetedSentimentEntity.Builder |
mentions(TargetedSentimentMention... mentions)
An array of mentions of the entity in the document.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTargetedSentimentEntity.Builder descriptiveMentionIndex(Collection<Integer> descriptiveMentionIndex)
One or more index into the Mentions array that provides the best name for the entity group.
descriptiveMentionIndex - One or more index into the Mentions array that provides the best name for the entity group.TargetedSentimentEntity.Builder descriptiveMentionIndex(Integer... descriptiveMentionIndex)
One or more index into the Mentions array that provides the best name for the entity group.
descriptiveMentionIndex - One or more index into the Mentions array that provides the best name for the entity group.TargetedSentimentEntity.Builder mentions(Collection<TargetedSentimentMention> mentions)
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
mentions - An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.TargetedSentimentEntity.Builder mentions(TargetedSentimentMention... mentions)
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
mentions - An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.TargetedSentimentEntity.Builder mentions(Consumer<TargetedSentimentMention.Builder>... mentions)
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
This is a convenience method that creates an instance of theTargetedSentimentMention.Builder avoiding the need
to create one manually via
TargetedSentimentMention.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #mentions(List.
mentions - a consumer that will call methods on
TargetedSentimentMention.Builder#mentions(java.util.Collection) Copyright © 2023. All rights reserved.