java.io.Serializable
IntensityLexiconEvaluator
, NegationEvaluator
, NRCEmotionLexiconEvaluator
, NRCExpandedEmotionLexiconEvaluator
, NRCHashtagEmotionLexiconEvaluator
, PolarityLexiconEvaluator
, SentiStrengthEvaluator
, SWN3LexiconEvaluator
public abstract class LexiconEvaluator
extends java.lang.Object
implements java.io.Serializable
Constructor | Description |
---|---|
LexiconEvaluator(java.lang.String path,
java.lang.String name) |
initializes the Object
|
Modifier and Type | Method | Description |
---|---|---|
abstract java.util.Map<java.lang.String,java.lang.Double> |
evaluateTweet(java.util.List<java.lang.String> tokens) |
Calculates lexicon-based feature values from a list of tokens
|
java.util.List<java.lang.String> |
getFeatureNames() |
Gets the feature names
|
abstract void |
processDict() |
initializes the dictionary
|
public LexiconEvaluator(java.lang.String path, java.lang.String name)
path
- the file with the lexiconname
- the prefix for all the attributes calculated from this lexiconpublic abstract void processDict() throws java.io.IOException
java.io.IOException
- in case of wrong filepublic abstract java.util.Map<java.lang.String,java.lang.Double> evaluateTweet(java.util.List<java.lang.String> tokens)
tokens
- a tokenized tweetpublic java.util.List<java.lang.String> getFeatureNames()