public class ToneAnalyzer extends WatsonService
Modifier and Type | Field and Description |
---|---|
static String |
VERSION_DATE_2016_02_11
Version date.
|
MESSAGE_CODE, MESSAGE_ERROR, VERSION
Constructor and Description |
---|
ToneAnalyzer(String versionDate)
Instantiates a new tone analyzer.
|
Modifier and Type | Method and Description |
---|---|
ServiceCall<ToneAnalysis> |
getTone(String text)
Analyzes the "tone" of a piece of text.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setUsernameAndPassword, toString
public static final String VERSION_DATE_2016_02_11
public ToneAnalyzer(String versionDate)
versionDate
- The version date (yyyy-MM-dd) of the REST API to use. Specifying this value
will keep your API calls from failing when the service introduces breaking changes.public ServiceCall<ToneAnalysis> getTone(String text)
text
- The text to analyzeToneAnalysis
with the responseCopyright © 2015–2016. All rights reserved.