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 | Method and Description |
---|---|
CreateClassifierOptions.Builder |
newBuilder()
New builder.
|
InputStream |
trainingData()
Gets the trainingData.
|
InputStream |
trainingMetadata()
Gets the trainingMetadata.
|
public CreateClassifierOptions.Builder newBuilder()
public 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 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).
Copyright © 2021 IBM Cloud. All rights reserved.