Class SentimentAnalysisResult


  • public final class SentimentAnalysisResult
    extends java.lang.Object
    • Method Detail

      • getText

        public java.lang.String getText()
        Returns:
        The transcript of the sentence
      • getStart

        public int getStart()
        Returns:
        The starting time, in milliseconds, of the sentence
      • getEnd

        public int getEnd()
        Returns:
        The ending time, in milliseconds, of the sentence
      • getSentiment

        public Sentiment getSentiment()
        Returns:
        The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE
      • getConfidence

        public double getConfidence()
        Returns:
        The confidence score for the detected sentiment of the sentence, from 0 to 1
      • getSpeaker

        public java.util.Optional<java.lang.String> getSpeaker()
        Returns:
        The speaker of the sentence if Speaker Diarization is enabled, else null
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object