public static class UpdateClassifierOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
UpdateClassifierOptions.Builder()
Instantiates a new builder.
|
UpdateClassifierOptions.Builder(java.lang.String classifierId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
UpdateClassifierOptions.Builder |
addClass(java.lang.String className,
java.io.File positiveExamples)
Adds a classifier with a name and positive examples.
|
UpdateClassifierOptions |
build()
Builds a UpdateClassifierOptions.
|
UpdateClassifierOptions.Builder |
classifierId(java.lang.String classifierId)
Set the classifierId.
|
UpdateClassifierOptions.Builder |
negativeExamples(java.io.File negativeExamples)
Set the negativeExamples.
|
UpdateClassifierOptions.Builder |
negativeExamples(java.io.InputStream negativeExamples)
Set the negativeExamples.
|
UpdateClassifierOptions.Builder |
negativeExamplesFilename(java.lang.String negativeExamplesFilename)
Set the negativeExamplesFilename.
|
public UpdateClassifierOptions.Builder()
public UpdateClassifierOptions.Builder(java.lang.String classifierId)
classifierId
- the classifierIdpublic UpdateClassifierOptions build()
public UpdateClassifierOptions.Builder classifierId(java.lang.String classifierId)
classifierId
- the classifierIdpublic UpdateClassifierOptions.Builder addClass(java.lang.String className, java.io.File positiveExamples)
className
- the class namepositiveExamples
- the positive examplespublic UpdateClassifierOptions.Builder negativeExamples(java.io.InputStream negativeExamples)
negativeExamples
- the negativeExamplespublic UpdateClassifierOptions.Builder negativeExamplesFilename(java.lang.String negativeExamplesFilename)
negativeExamplesFilename
- the negativeExamplesFilenamepublic UpdateClassifierOptions.Builder negativeExamples(java.io.File negativeExamples) throws java.io.FileNotFoundException
negativeExamples
- the negativeExamplesjava.io.FileNotFoundException
- if the file could not be found