public class NaturalLanguageUnderstanding extends WatsonService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VERSION_DATE_2017_02_27
The Constant VERSION_DATE_2017_02_27.
|
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description |
|---|
NaturalLanguageUnderstanding(java.lang.String versionDate)
Instantiates a new `NaturalLanguageUnderstanding`.
|
NaturalLanguageUnderstanding(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
Instantiates a new `NaturalLanguageUnderstanding` with username and password.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceCall<AnalysisResults> |
analyze(AnalyzeOptions analyzeOptions)
Analyze text, HTML, or a public webpage.
|
ServiceCall<java.lang.Void> |
deleteModel(DeleteModelOptions deleteModelOptions)
Delete model.
|
ServiceCall<ListModelsResults> |
listModels()
List models.
|
ServiceCall<ListModelsResults> |
listModels(ListModelsOptions listModelsOptions)
List models.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toStringpublic static final java.lang.String VERSION_DATE_2017_02_27
public NaturalLanguageUnderstanding(java.lang.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 NaturalLanguageUnderstanding(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
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.username - the usernamepassword - the passwordpublic ServiceCall<AnalysisResults> analyze(AnalyzeOptions analyzeOptions)
analyzeOptions - the AnalyzeOptions containing the options for the callServiceCall with a response type of AnalysisResultspublic ServiceCall<java.lang.Void> deleteModel(DeleteModelOptions deleteModelOptions)
deleteModelOptions - the DeleteModelOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<ListModelsResults> listModels(ListModelsOptions listModelsOptions)
listModelsOptions - the ListModelsOptions containing the options for the callServiceCall with a response type of ListModelsResultspublic ServiceCall<ListModelsResults> listModels()
ServiceCall with a response type of ListModelsResults