public class NaturalLanguageClassifier
extends com.ibm.cloud.sdk.core.service.BaseService
Constructor and Description |
---|
NaturalLanguageClassifier()
Constructs a new `NaturalLanguageClassifier` client using the DEFAULT_SERVICE_NAME.
|
NaturalLanguageClassifier(com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `NaturalLanguageClassifier` client with the DEFAULT_SERVICE_NAME
and the specified Authenticator.
|
NaturalLanguageClassifier(java.lang.String serviceName)
Constructs a new `NaturalLanguageClassifier` client with the specified serviceName.
|
NaturalLanguageClassifier(java.lang.String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `NaturalLanguageClassifier` client with the specified Authenticator
and serviceName.
|
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, configureService, createServiceCall, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, processServiceCall, setAuthentication, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setServiceUrl, toString
public NaturalLanguageClassifier()
public NaturalLanguageClassifier(com.ibm.cloud.sdk.core.security.Authenticator authenticator)
authenticator
- the Authenticator instance to be configured for this servicepublic NaturalLanguageClassifier(java.lang.String serviceName)
serviceName
- The name of the service to configure.public NaturalLanguageClassifier(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
serviceName
- The name of the service to configure.authenticator
- the Authenticator instance to be configured 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