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