public static class CreateModelOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateModelOptions.Builder()
Instantiates a new builder.
|
CreateModelOptions.Builder(java.lang.String baseModelId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateModelOptions.Builder |
baseModelId(java.lang.String baseModelId)
Set the baseModelId.
|
CreateModelOptions |
build()
Builds a CreateModelOptions.
|
CreateModelOptions.Builder |
forcedGlossary(java.io.File forcedGlossary)
Set the forcedGlossary.
|
CreateModelOptions.Builder |
forcedGlossary(java.io.InputStream forcedGlossary)
Set the forcedGlossary.
|
CreateModelOptions.Builder |
name(java.lang.String name)
Set the name.
|
CreateModelOptions.Builder |
parallelCorpus(java.io.File parallelCorpus)
Set the parallelCorpus.
|
CreateModelOptions.Builder |
parallelCorpus(java.io.InputStream parallelCorpus)
Set the parallelCorpus.
|
public CreateModelOptions.Builder()
public CreateModelOptions.Builder(java.lang.String baseModelId)
baseModelId
- the baseModelIdpublic CreateModelOptions build()
public CreateModelOptions.Builder baseModelId(java.lang.String baseModelId)
baseModelId
- the baseModelIdpublic CreateModelOptions.Builder forcedGlossary(java.io.InputStream forcedGlossary)
forcedGlossary
- the forcedGlossarypublic CreateModelOptions.Builder parallelCorpus(java.io.InputStream parallelCorpus)
parallelCorpus
- the parallelCorpuspublic CreateModelOptions.Builder name(java.lang.String name)
name
- the namepublic CreateModelOptions.Builder forcedGlossary(java.io.File forcedGlossary) throws java.io.FileNotFoundException
forcedGlossary
- the forcedGlossaryjava.io.FileNotFoundException
- if the file could not be foundpublic CreateModelOptions.Builder parallelCorpus(java.io.File parallelCorpus) throws java.io.FileNotFoundException
parallelCorpus
- the parallelCorpusjava.io.FileNotFoundException
- if the file could not be found