Class LinearSentimentClassMapping

    • Constructor Detail

      • LinearSentimentClassMapping

        public LinearSentimentClassMapping​(int numClasses)
      • LinearSentimentClassMapping

        public LinearSentimentClassMapping​(int numClasses,
                                           int minValue,
                                           int maxValue)
    • Method Detail

      • getIndexWeight

        public double getIndexWeight​(int index)
        Description copied from interface: SentimentClassMapping
        Getter for the double weight for the sentiment class with a given index
        Specified by:
        getIndexWeight in interface SentimentClassMapping
        Parameters:
        index - the index of the sentiment class
        Returns:
        the double sentiment weight or Double.NaN if no weight is defined for this index