Class CreateClassifierOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_classifier.v1.model.CreateClassifierOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class CreateClassifierOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createClassifier options.
  • Method Details

    • newBuilder

      public CreateClassifierOptions.Builder newBuilder()
      New builder.
      Returns:
      a CreateClassifierOptions builder
    • trainingMetadata

      public InputStream trainingMetadata()
      Gets the trainingMetadata.

      Metadata in JSON format. The metadata identifies the language of the data, and an optional name to identify the classifier. Specify the language with the 2-letter primary language code as assigned in ISO standard 639.

      Supported languages are English (`en`), Arabic (`ar`), French (`fr`), German, (`de`), Italian (`it`), Japanese (`ja`), Korean (`ko`), Brazilian Portuguese (`pt`), and Spanish (`es`).

      Returns:
      the trainingMetadata
    • trainingData

      public InputStream trainingData()
      Gets the trainingData.

      Training data in CSV format. Each text value must have at least one class. The data can include up to 3,000 classes and 20,000 records. For details, see [Data preparation](https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-using-your-data).

      Returns:
      the trainingData