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, toStringpublic 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)
Returns label information for the input. The status must be `Available` before you can use the classifier to classify text.
classifyOptions - the ClassifyOptions containing the options for the callServiceCall with a response type of Classificationpublic com.ibm.cloud.sdk.core.http.ServiceCall<ClassificationCollection> classifyCollection(ClassifyCollectionOptions classifyCollectionOptions)
Returns label information for multiple phrases. The status must be `Available` before you can use the classifier to classify text.
Note that classifying Japanese texts is a beta feature.
classifyCollectionOptions - the ClassifyCollectionOptions containing the options
for the callServiceCall with a response type of ClassificationCollectionpublic com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> createClassifier(CreateClassifierOptions createClassifierOptions)
Sends data to create and train a classifier and returns information about the new classifier.
createClassifierOptions - the CreateClassifierOptions containing the options for
the callServiceCall with a response type of Classifierpublic com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> listClassifiers(ListClassifiersOptions listClassifiersOptions)
Returns an empty array if no classifiers are available.
listClassifiersOptions - the ListClassifiersOptions containing the options for the
callServiceCall with a response type of ClassifierListpublic com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> listClassifiers()
Returns an empty array if no classifiers are available.
ServiceCall with a response type of ClassifierListpublic com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions)
Returns status and other information about a classifier.
getClassifierOptions - the GetClassifierOptions containing the options for the
callServiceCall with a response type of Classifierpublic 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