public static class CreateDocumentClassifierOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String projectId,
InputStream trainingData,
CreateDocumentClassifier classifier)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateDocumentClassifierOptions |
build()
Builds a CreateDocumentClassifierOptions.
|
CreateDocumentClassifierOptions.Builder |
classifier(CreateDocumentClassifier classifier)
Set the classifier.
|
CreateDocumentClassifierOptions.Builder |
projectId(String projectId)
Set the projectId.
|
CreateDocumentClassifierOptions.Builder |
testData(File testData)
Set the testData.
|
CreateDocumentClassifierOptions.Builder |
testData(InputStream testData)
Set the testData.
|
CreateDocumentClassifierOptions.Builder |
trainingData(File trainingData)
Set the trainingData.
|
CreateDocumentClassifierOptions.Builder |
trainingData(InputStream trainingData)
Set the trainingData.
|
public Builder()
public Builder(String projectId, InputStream trainingData, CreateDocumentClassifier classifier)
projectId
- the projectIdtrainingData
- the trainingDataclassifier
- the classifierpublic CreateDocumentClassifierOptions build()
public CreateDocumentClassifierOptions.Builder projectId(String projectId)
projectId
- the projectIdpublic CreateDocumentClassifierOptions.Builder trainingData(InputStream trainingData)
trainingData
- the trainingDatapublic CreateDocumentClassifierOptions.Builder classifier(CreateDocumentClassifier classifier)
classifier
- the classifierpublic CreateDocumentClassifierOptions.Builder testData(InputStream testData)
testData
- the testDatapublic CreateDocumentClassifierOptions.Builder trainingData(File trainingData) throws FileNotFoundException
trainingData
- the trainingDataFileNotFoundException
- if the file could not be foundpublic CreateDocumentClassifierOptions.Builder testData(File testData) throws FileNotFoundException
testData
- the testDataFileNotFoundException
- if the file could not be foundCopyright © 2024 IBM Cloud. All rights reserved.