public class NaturalLanguageClassifier
extends com.ibm.cloud.sdk.core.service.BaseService
Constructor and Description |
---|
NaturalLanguageClassifier()
Deprecated.
Use NaturalLanguageClassifier(AuthenticatorConfig authenticatorConfig) instead
|
NaturalLanguageClassifier(com.ibm.cloud.sdk.core.security.AuthenticatorConfig authenticatorConfig)
Instantiates a new `NaturalLanguageClassifier` with the specified authentication configuration.
|
NaturalLanguageClassifier(java.lang.String username,
java.lang.String password)
Deprecated.
Use NaturalLanguageClassifier(AuthenticatorConfig authenticatorConfig) instead
|
Modifier and Type | Method and Description |
---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<Classification> |
classify(ClassifyOptions classifyOptions)
Classify a phrase.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassificationCollection> |
classifyCollection(ClassifyCollectionOptions classifyCollectionOptions)
Classify multiple phrases.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> |
createClassifier(CreateClassifierOptions createClassifierOptions)
Create classifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> |
deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)
Delete classifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> |
getClassifier(GetClassifierOptions getClassifierOptions)
Get information about a classifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> |
listClassifiers()
List classifiers.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> |
listClassifiers(ListClassifiersOptions listClassifiersOptions)
List classifiers.
|
configureClient, configureHttpClient, createServiceCall, getApiKey, getAuthenticator, getClient, getEndPoint, getName, getPassword, getUsername, isJsonMimeType, isJsonPatchMimeType, isSkipAuthentication, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setAuthenticator, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toString
@Deprecated public NaturalLanguageClassifier()
@Deprecated public NaturalLanguageClassifier(java.lang.String username, java.lang.String password)
username
- the usernamepassword
- the passwordpublic NaturalLanguageClassifier(com.ibm.cloud.sdk.core.security.AuthenticatorConfig authenticatorConfig)
authenticatorConfig
- the authentication configuration for this servicepublic com.ibm.cloud.sdk.core.http.ServiceCall<Classification> classify(ClassifyOptions classifyOptions)
classifyOptions
- the ClassifyOptions
containing the options for the callServiceCall
with a response type of Classification
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassificationCollection> classifyCollection(ClassifyCollectionOptions classifyCollectionOptions)
classifyCollectionOptions
- the ClassifyCollectionOptions
containing the options for the callServiceCall
with a response type of ClassificationCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> createClassifier(CreateClassifierOptions createClassifierOptions)
createClassifierOptions
- the CreateClassifierOptions
containing the options for the callServiceCall
with a response type of Classifier
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> listClassifiers(ListClassifiersOptions listClassifiersOptions)
listClassifiersOptions
- the ListClassifiersOptions
containing the options for the callServiceCall
with a response type of ClassifierList
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> listClassifiers()
ServiceCall
with a response type of ClassifierList
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions)
getClassifierOptions
- the GetClassifierOptions
containing the options for the callServiceCall
with a response type of Classifier
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)
deleteClassifierOptions
- the DeleteClassifierOptions
containing the options for the callServiceCall
with a response type of Void