public class NaturalLanguageUnderstanding extends WatsonService
defaultHeaders, JSON_MIME_PATTERN, JSON_PATCH_MIME_PATTERN, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
NaturalLanguageUnderstanding(java.lang.String versionDate)
Instantiates a new `NaturalLanguageUnderstanding`.
|
NaturalLanguageUnderstanding(java.lang.String versionDate,
IamOptions iamOptions)
Instantiates a new `NaturalLanguageUnderstanding` with IAM.
|
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.
|
ServiceCall<java.lang.Void> |
deleteModel(DeleteModelOptions deleteModelOptions)
Delete model.
|
ServiceCall<ListModelsResults> |
listModels()
List models.
|
ServiceCall<ListModelsResults> |
listModels(ListModelsOptions listModelsOptions)
List models.
|
configureClient, configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getPassword, getToken, getUsername, isJsonMimeType, isJsonPatchMimeType, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toString
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 NaturalLanguageUnderstanding(java.lang.String versionDate, IamOptions iamOptions)
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.iamOptions
- the options for authenticating through IAMpublic ServiceCall<AnalysisResults> analyze(AnalyzeOptions analyzeOptions)
analyzeOptions
- the AnalyzeOptions
containing the options for the callServiceCall
with a response type of AnalysisResults
public 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 ListModelsResults
public ServiceCall<ListModelsResults> listModels()
ServiceCall
with a response type of ListModelsResults