Natural Language Classifier uses machine learning algorithms to return the top matching predefined classes for short text input. You create and train a classifier to connect predefined classes to example texts so that the service can apply those classes to new inputs.
API Version: 1.0 See: https://cloud.ibm.com/docs/natural-language-classifier
@Deprecated public class NaturalLanguageClassifier extends com.ibm.cloud.sdk.core.service.BaseService
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_NAME
Deprecated.
|
static String |
DEFAULT_SERVICE_URL
Deprecated.
|
Constructor and Description |
---|
NaturalLanguageClassifier()
Deprecated.
Constructs an instance of the `NaturalLanguageClassifier` client.
|
NaturalLanguageClassifier(com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Deprecated.
Constructs an instance of the `NaturalLanguageClassifier` client.
|
NaturalLanguageClassifier(String serviceName)
Deprecated.
Constructs an instance of the `NaturalLanguageClassifier` client.
|
NaturalLanguageClassifier(String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Deprecated.
Constructs an instance of the `NaturalLanguageClassifier` client.
|
Modifier and Type | Method and Description |
---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<Classification> |
classify(ClassifyOptions classifyOptions)
Deprecated.
Classify a phrase.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassificationCollection> |
classifyCollection(ClassifyCollectionOptions classifyCollectionOptions)
Deprecated.
Classify multiple phrases.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> |
createClassifier(CreateClassifierOptions createClassifierOptions)
Deprecated.
Create classifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Void> |
deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)
Deprecated.
Delete classifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> |
getClassifier(GetClassifierOptions getClassifierOptions)
Deprecated.
Get information about a classifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> |
listClassifiers()
Deprecated.
List classifiers.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> |
listClassifiers(ListClassifiersOptions listClassifiersOptions)
Deprecated.
List classifiers.
|
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
public static final String DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_URL
public NaturalLanguageClassifier()
public NaturalLanguageClassifier(com.ibm.cloud.sdk.core.security.Authenticator authenticator)
authenticator
- the Authenticator
instance to be configured for this clientpublic NaturalLanguageClassifier(String serviceName)
serviceName
- the service name to be used when configuring the client instancepublic NaturalLanguageClassifier(String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
serviceName
- the service name to be used when configuring the client instanceauthenticator
- the Authenticator
instance to be configured for this clientpublic 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 result of type Classification
public 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 result of type ClassificationCollection
public 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 result of type Classifier
public 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 result of type ClassifierList
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> listClassifiers()
Returns an empty array if no classifiers are available.
ServiceCall
with a result of type ClassifierList
public 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 result of type Classifier
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)
deleteClassifierOptions
- the DeleteClassifierOptions
containing the options for
the callServiceCall
with a void resultCopyright © 2021 IBM Cloud. All rights reserved.