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 IBM Watson&trade; Natural Language Classifier. As of 9 September 2021, you cannot create new instances. However, existing instances are supported until 8 August 2022. The service will no longer be available on 8 August 2022.<br/><br/>As an alternative, consider migrating to IBM Watson Natural Language Understanding. For more information, see [Migrating to Natural Language Understanding](https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-migrating). {: deprecated}

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

  • 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