Interface SentimentClassMapping

  • All Known Implementing Classes:
    LinearSentimentClassMapping

    public interface SentimentClassMapping
    Stanford NLP uses Sentiment Classes. Implementations of this interface are used to assign double sentiment values (typically in the range [-1..+1]) to those classes.
    Author:
    Rupert Westenthaler
    • Method Detail

      • getIndexWeight

        double getIndexWeight​(int index)
        Getter for the double weight for the sentiment class with a given index
        Parameters:
        index - the index of the sentiment class
        Returns:
        the double sentiment weight or Double.NaN if no weight is defined for this index