Interface SentimentClassMapping
-
- All Known Implementing Classes:
LinearSentimentClassMapping
public interface SentimentClassMappingStanford 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 Summary
All Methods Instance Methods Abstract 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
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.NaNif no weight is defined for this index
-
-