Class NaturalLanguageClassifier
java.lang.Object
com.ibm.cloud.sdk.core.service.BaseService
com.ibm.watson.natural_language_classifier.v1.NaturalLanguageClassifier
@Deprecated public class NaturalLanguageClassifier extends com.ibm.cloud.sdk.core.service.BaseService
Deprecated.
On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service.
The service will no longer be available from 8 August 2022. As of 9 September 2021, you will not be able to create new instances.
Existing instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted.
(https://github.com/watson-developer-cloud/java-sdk/tree/master#natural-language-classifier-deprecation).
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SERVICE_NAME
Deprecated.static String
DEFAULT_SERVICE_URL
Deprecated.Fields inherited from class com.ibm.cloud.sdk.core.service.BaseService
PROPNAME_DISABLE_SSL, PROPNAME_ENABLE_GZIP, PROPNAME_URL
-
Constructor Summary
Constructors Constructor 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. -
Method Summary
Modifier and Type Method 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.Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, enableGzipCompression, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
Field Details
-
DEFAULT_SERVICE_NAME
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Details
-
NaturalLanguageClassifier
public NaturalLanguageClassifier()Deprecated.Constructs an instance of the `NaturalLanguageClassifier` client. The default service name is used to configure the client instance. -
NaturalLanguageClassifier
public NaturalLanguageClassifier(com.ibm.cloud.sdk.core.security.Authenticator authenticator)Deprecated.Constructs an instance of the `NaturalLanguageClassifier` client. The default service name and specified authenticator are used to configure the client instance.- Parameters:
authenticator
- theAuthenticator
instance to be configured for this client
-
NaturalLanguageClassifier
Deprecated.Constructs an instance of the `NaturalLanguageClassifier` client. The specified service name is used to configure the client instance.- Parameters:
serviceName
- the service name to be used when configuring the client instance
-
NaturalLanguageClassifier
public NaturalLanguageClassifier(String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Deprecated.Constructs an instance of the `NaturalLanguageClassifier` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
serviceName
- the service name to be used when configuring the client instanceauthenticator
- theAuthenticator
instance to be configured for this client
-
-
Method Details
-
classify
public com.ibm.cloud.sdk.core.http.ServiceCall<Classification> classify(ClassifyOptions classifyOptions)Deprecated.Classify a phrase.Returns label information for the input. The status must be `Available` before you can use the classifier to classify text.
- Parameters:
classifyOptions
- theClassifyOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassification
-
classifyCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassificationCollection> classifyCollection(ClassifyCollectionOptions classifyCollectionOptions)Deprecated.Classify multiple phrases.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.
- Parameters:
classifyCollectionOptions
- theClassifyCollectionOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassificationCollection
-
createClassifier
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> createClassifier(CreateClassifierOptions createClassifierOptions)Deprecated.Create classifier.Sends data to create and train a classifier and returns information about the new classifier.
- Parameters:
createClassifierOptions
- theCreateClassifierOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassifier
-
listClassifiers
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> listClassifiers(ListClassifiersOptions listClassifiersOptions)Deprecated.List classifiers.Returns an empty array if no classifiers are available.
- Parameters:
listClassifiersOptions
- theListClassifiersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassifierList
-
listClassifiers
Deprecated.List classifiers.Returns an empty array if no classifiers are available.
- Returns:
- a
ServiceCall
with a result of typeClassifierList
-
getClassifier
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions)Deprecated.Get information about a classifier.Returns status and other information about a classifier.
- Parameters:
getClassifierOptions
- theGetClassifierOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassifier
-
deleteClassifier
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)Deprecated.Delete classifier.- Parameters:
deleteClassifierOptions
- theDeleteClassifierOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-