public class CreateDocumentClassifierOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
CreateDocumentClassifierOptions.Builder
Builder.
|
Modifier and Type | Method and Description |
---|---|
CreateDocumentClassifier |
classifier()
Gets the classifier.
|
CreateDocumentClassifierOptions.Builder |
newBuilder()
New builder.
|
String |
projectId()
Gets the projectId.
|
InputStream |
testData()
Gets the testData.
|
InputStream |
trainingData()
Gets the trainingData.
|
public CreateDocumentClassifierOptions.Builder newBuilder()
public String projectId()
The ID of the project. This information can be found from the *Integrate and Deploy* page in Discovery.
public InputStream trainingData()
The training data CSV file to upload. The CSV file must have headers. The file must include a field that contains the text you want to classify and a field that contains the classification labels that you want to use to classify your data. If you want to specify multiple values in a single field, use a semicolon as the value separator. For a sample file, see [the product documentation](/docs/discovery-data?topic=discovery-data-cm-doc-classifier).
public CreateDocumentClassifier classifier()
An object that manages the settings and data that is required to train a document classification model.
public InputStream testData()
The CSV with test data to upload. The column values in the test file must be the same as the column values in the training data file. If no test data is provided, the training data is split into two separate groups of training and test data.
Copyright © 2024 IBM Cloud. All rights reserved.