public class TFFCountSentiment extends Object implements Sentiment, BipolarSentimentProvider, WeightedBipolarSentimentProvider, DiscreteCountBipolarSentimentProvider
| Constructor and Description |
|---|
TFFCountSentiment()
all weights set to 0
|
TFFCountSentiment(int total) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,?> |
asMap() |
BipolarSentiment |
bipolar() |
BipolarSentiment |
bipolar(double deltaThresh) |
static BipolarSentiment |
bipolar(TFF.Clue clue) |
DiscreteCountBipolarSentiment |
countBipolarSentiment() |
boolean |
equals(Object obj) |
void |
fromMap(Map<String,?> map) |
void |
incrementClue(TFF.Clue entry,
int increment) |
WeightedBipolarSentiment |
weightedBipolar() |
public TFFCountSentiment()
public TFFCountSentiment(int total)
total - instnatiate with a total number of wordspublic void incrementClue(TFF.Clue entry, int increment)
entry - increment - public BipolarSentiment bipolar()
bipolar in interface BipolarSentimentProviderpublic BipolarSentiment bipolar(double deltaThresh)
bipolar in interface BipolarSentimentProviderdeltaThresh - A a proportional thresholdpublic WeightedBipolarSentiment weightedBipolar()
weightedBipolar in interface WeightedBipolarSentimentProviderpublic DiscreteCountBipolarSentiment countBipolarSentiment()
countBipolarSentiment in interface DiscreteCountBipolarSentimentProviderpublic void fromMap(Map<String,?> map) throws UnrecognisedMapException
fromMap in interface Sentimentmap - the map containing this sentimentUnrecognisedMapExceptionpublic static BipolarSentiment bipolar(TFF.Clue clue)
clue - TFFCountSentiment with 1 word and 1 clue and call bipolar()