Class LinearSentimentClassMapping
- java.lang.Object
-
- io.redlink.nlp.stanfordnlp.sentiment.LinearSentimentClassMapping
-
- All Implemented Interfaces:
SentimentClassMapping
public class LinearSentimentClassMapping extends Object implements SentimentClassMapping
-
-
Constructor Summary
Constructors Constructor Description LinearSentimentClassMapping(int numClasses)LinearSentimentClassMapping(int numClasses, int minValue, int maxValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetIndexWeight(int index)Getter for the double weight for the sentiment class with a given index
-
-
-
Method Detail
-
getIndexWeight
public double getIndexWeight(int index)
Description copied from interface:SentimentClassMappingGetter for the double weight for the sentiment class with a given index- Specified by:
getIndexWeightin interfaceSentimentClassMapping- Parameters:
index- the index of the sentiment class- Returns:
- the double sentiment weight or
Double.NaNif no weight is defined for this index
-
-