public class ToneAnalyzer extends WatsonService
VERSION| Constructor and Description |
|---|
ToneAnalyzer()
Instantiates a new Tone Analyzer service.
|
| Modifier and Type | Method and Description |
|---|---|
List<Scorecard> |
getScorecards()
Returns the
Scorecards. |
List<SynonymResult> |
getSynonyms(SynonymOptions options)
Starts or continue conversations.
|
Tone |
getTone(String text)
Analyzes the "tone" of a piece of text using the default scorecard.
|
Tone |
getTone(String text,
Scorecard scorecard)
Analyzes the "tone" of a piece of text.
|
configureHttpClient, execute, executeRequest, executeWithoutResponse, getApiKey, getEndPoint, getName, getToken, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setUsernameAndPassword, toStringpublic List<SynonymResult> getSynonyms(SynonymOptions options)
options - the request optionsSynonymResultpublic Tone getTone(String text)
text - The text to analyzeTone with the responsepublic Tone getTone(String text, Scorecard scorecard)
text - The text to analyzescorecard - Name of the scorecard used to compute the tone. (business messages by default)Tone with the responseCopyright © 2015–2016. All rights reserved.