Class TargetedSentimentMention

    • Method Detail

      • score

        public final Float score()

        Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.

        Returns:
        Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
      • groupScore

        public final Float groupScore()

        The confidence that all the entities mentioned in the group relate to the same entity.

        Returns:
        The confidence that all the entities mentioned in the group relate to the same entity.
      • text

        public final String text()

        The text in the document that identifies the entity.

        Returns:
        The text in the document that identifies the entity.
      • mentionSentiment

        public final MentionSentiment mentionSentiment()

        Contains the sentiment and sentiment score for the mention.

        Returns:
        Contains the sentiment and sentiment score for the mention.
      • beginOffset

        public final Integer beginOffset()

        The offset into the document text where the mention begins.

        Returns:
        The offset into the document text where the mention begins.
      • endOffset

        public final Integer endOffset()

        The offset into the document text where the mention ends.

        Returns:
        The offset into the document text where the mention ends.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)