public interface SentimentAnalyzer
| Modifier and Type | Method and Description |
|---|---|
Sentiment |
analyze(SentimentAnalysisRequest request)
Determine the sentiment of the input text.
|
String |
getName()
Gets the name of the sentiment analyzer.
|
String |
getSentimentLabel()
Gets the label of the sentiment.
|
Sentiment analyze(SentimentAnalysisRequest request) throws SentimentAnalysisException
request - The sentiment analysis request.Sentiment.SentimentAnalysisException - Thrown if the sentiment analysis fails.String getSentimentLabel()
String getName()
Copyright © 2018. All rights reserved.