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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateClassifierOptions.Builder
Builder. -
Method Summary
Modifier and Type Method Description CreateClassifierOptions.Builder
newBuilder()
New builder.InputStream
trainingData()
Gets the trainingData.InputStream
trainingMetadata()
Gets the trainingMetadata.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a CreateClassifierOptions builder
-
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
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
-