@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.tffConstructor 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.
|
getAnnotations
classify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
classify
public MPQAToken() throws IOException
IOException
public MPQAToken(File f) throws IOException
f
- IOException
public List<ScoredAnnotation<BipolarSentiment>> annotate(String word)
Annotator
word
- the image