Class AssessmentSentiment

    • Constructor Detail

      • AssessmentSentiment

        public AssessmentSentiment()
    • Method Detail

      • getText

        public String getText()
        Gets the opinion text property.
        Returns:
        The text value.
      • getSentiment

        public TextSentiment getSentiment()
        Gets the opinion text sentiment label: POSITIVE, NEGATIVE, MIXED. TextSentiment has neutral sentiment type additionally, but target sentiment can only be positive, negative, or mixed.
        Returns:
        The sentiment value.
      • getOffset

        public int getOffset()
        Gets the offset of opinion text.
        Returns:
        The offset of opinion text.
      • getLength

        public int getLength()
        Gets the length of opinion text.
        Returns:
        The length of opinion text.
      • isNegated

        public boolean isNegated()
        Gets the boolean indicator to show if the text is negative.
        Returns:
        The boolean indicator to show if the text is negative.