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 Details

  • 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 - the Authenticator instance to be configured for this client
    • NaturalLanguageClassifier

      public NaturalLanguageClassifier​(String serviceName)
      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 instance
      authenticator - the Authenticator 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 - the ClassifyOptions containing the options for the call
      Returns:
      a ServiceCall with a result of type Classification
    • 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 - the ClassifyCollectionOptions containing the options for the call
      Returns:
      a ServiceCall with a result of type ClassificationCollection
    • 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 - the CreateClassifierOptions containing the options for the call
      Returns:
      a ServiceCall with a result of type Classifier
    • 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 - the ListClassifiersOptions containing the options for the call
      Returns:
      a ServiceCall with a result of type ClassifierList
    • listClassifiers

      public com.ibm.cloud.sdk.core.http.ServiceCall<ClassifierList> listClassifiers()
      Deprecated.
      List classifiers.

      Returns an empty array if no classifiers are available.

      Returns:
      a ServiceCall with a result of type ClassifierList
    • 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 - the GetClassifierOptions containing the options for the call
      Returns:
      a ServiceCall with a result of type Classifier
    • deleteClassifier

      public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteClassifier​(DeleteClassifierOptions deleteClassifierOptions)
      Deprecated.
      Delete classifier.
      Parameters:
      deleteClassifierOptions - the DeleteClassifierOptions containing the options for the call
      Returns:
      a ServiceCall with a void result