public class CreateClassifierOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
CreateClassifierOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.io.InputStream |
trainingData |
protected java.io.InputStream |
trainingMetadata |
Modifier | Constructor and Description |
---|---|
protected |
CreateClassifierOptions(CreateClassifierOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
CreateClassifierOptions.Builder |
newBuilder()
New builder.
|
java.io.InputStream |
trainingData()
Gets the trainingData.
|
java.io.InputStream |
trainingMetadata()
Gets the trainingMetadata.
|
protected java.io.InputStream trainingMetadata
protected java.io.InputStream trainingData
protected CreateClassifierOptions(CreateClassifierOptions.Builder builder)
public CreateClassifierOptions.Builder newBuilder()
public java.io.InputStream 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`).
public java.io.InputStream 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).