public static class ClassifierOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
ClassifierOptions.Builder |
addClass(String className,
File positiveExamples)
Adds a classifier with a name and positive examples.
|
ClassifierOptions |
build()
Builds a
CreateClassifierOptions . |
ClassifierOptions.Builder |
classifierName(String classifierName)
Classifier name.
|
ClassifierOptions.Builder |
negativeExamples(File negativeExamples)
Sets the negative examples.
|
public ClassifierOptions.Builder addClass(String className, File positiveExamples)
className
- the class namepositiveExamples
- the positive examplespublic ClassifierOptions.Builder negativeExamples(File negativeExamples)
negativeExamples
- the negative examplespublic ClassifierOptions build()
CreateClassifierOptions
.public ClassifierOptions.Builder classifierName(String classifierName)
classifierName
- the classifier nameCopyright © 2015–2016 IBM Watson. All rights reserved.