public static class CreateClassifierOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateClassifierOptions.Builder()
Instantiates a new builder.
|
CreateClassifierOptions.Builder(java.lang.String name)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateClassifierOptions.Builder |
addPositiveExamples(java.lang.String classname,
java.io.File positiveExamples)
Adds an entry to the positiveExamples map.
|
CreateClassifierOptions.Builder |
addPositiveExamples(java.lang.String classname,
java.io.InputStream positiveExamples)
Adds an entry to the positiveExamples map.
|
CreateClassifierOptions |
build()
Builds a CreateClassifierOptions.
|
CreateClassifierOptions.Builder |
name(java.lang.String name)
Set the name.
|
CreateClassifierOptions.Builder |
negativeExamples(java.io.File negativeExamples)
Set the negativeExamples.
|
CreateClassifierOptions.Builder |
negativeExamples(java.io.InputStream negativeExamples)
Set the negativeExamples.
|
CreateClassifierOptions.Builder |
negativeExamplesFilename(java.lang.String negativeExamplesFilename)
Set the negativeExamplesFilename.
|
CreateClassifierOptions.Builder |
positiveExamples(java.util.Map<java.lang.String,java.io.InputStream> positiveExamples)
Set the positiveExamples.
|
public CreateClassifierOptions.Builder()
public CreateClassifierOptions.Builder(java.lang.String name)
name
- the namepublic CreateClassifierOptions build()
public CreateClassifierOptions.Builder addPositiveExamples(java.lang.String classname, java.io.InputStream positiveExamples)
classname
- the key associated with the map entry to be addedpositiveExamples
- the value associated with the map entry to be addedpublic CreateClassifierOptions.Builder name(java.lang.String name)
name
- the namepublic CreateClassifierOptions.Builder positiveExamples(java.util.Map<java.lang.String,java.io.InputStream> positiveExamples)
positiveExamples
- the positiveExamplespublic CreateClassifierOptions.Builder negativeExamples(java.io.InputStream negativeExamples)
negativeExamples
- the negativeExamplespublic CreateClassifierOptions.Builder negativeExamplesFilename(java.lang.String negativeExamplesFilename)
negativeExamplesFilename
- the negativeExamplesFilenamepublic CreateClassifierOptions.Builder addPositiveExamples(java.lang.String classname, java.io.File positiveExamples) throws java.io.FileNotFoundException
classname
- the key associated with the map entry to be addedpositiveExamples
- the value associated with the map entry to be addedjava.io.FileNotFoundException
- if the file could not be foundpublic CreateClassifierOptions.Builder negativeExamples(java.io.File negativeExamples) throws java.io.FileNotFoundException
negativeExamples
- the negativeExamplesjava.io.FileNotFoundException
- if the file could not be found