Interface TargetedSentimentEntity.Builder

    • Method Detail

      • descriptiveMentionIndex

        TargetedSentimentEntity.Builder descriptiveMentionIndex​(Collection<Integer> descriptiveMentionIndex)

        One or more index into the Mentions array that provides the best name for the entity group.

        Parameters:
        descriptiveMentionIndex - One or more index into the Mentions array that provides the best name for the entity group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • descriptiveMentionIndex

        TargetedSentimentEntity.Builder descriptiveMentionIndex​(Integer... descriptiveMentionIndex)

        One or more index into the Mentions array that provides the best name for the entity group.

        Parameters:
        descriptiveMentionIndex - One or more index into the Mentions array that provides the best name for the entity group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • mentions

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.