@Reference(author={"Janyce Wiebe","Theresa Wilson","Claire Cardie"}, title="Annotating expressions of opinions and emotions in language. ", type=Article, year="2005") public class MPQATokenList extends TokenListSentimentAnnotator<IdentityFeatureExtractor<List<String>>,MPQATokenList>
TFF
.
The default model is found in:
/org/openimaj/text/sentiment/mpqa/subjclueslen1polar.tffConstructor and Description |
---|
MPQATokenList()
Construct the sentiment model using the default word clue TFF
|
MPQATokenList(File f)
Construct the sentiment model using the provided tff file
|
MPQATokenList(MPQATokenList mpqa) |
Modifier and Type | Method and Description |
---|---|
List<ScoredAnnotation<BipolarSentiment>> |
annotate(List<String> words)
Generate annotations for the given object.
|
getAnnotations
classify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
classify
public MPQATokenList() throws IOException
IOException
public MPQATokenList(File f) throws IOException
f
- IOException
public MPQATokenList(MPQATokenList mpqa)
mpqa
- used by clonepublic List<ScoredAnnotation<BipolarSentiment>> annotate(List<String> words)
Annotator
words
- the image