Package opennlp.tools.sentiment
Interface SentimentDetector
- All Known Implementing Classes:
SentimentME
public interface SentimentDetector
-
Method Summary
-
Method Details
-
predict
Conducts a sentiment prediction for the specifed sentence.- Parameters:
sentence- The text to be analysed for its sentiment.- Returns:
- The predicted sentiment.
-
predict
Conducts a sentiment prediction for the specifed sentence.- Parameters:
tokens- The text to be analysed for its sentiment.- Returns:
- The predicted sentiment.
-