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 |
forcedGlossaryFilename(java.lang.String forcedGlossaryFilename)
Set the forcedGlossaryFilename.
|
CreateModelOptions.Builder |
monolingualCorpus(java.io.File monolingualCorpus)
Set the monolingualCorpus.
|
CreateModelOptions.Builder |
monolingualCorpus(java.io.InputStream monolingualCorpus)
Set the monolingualCorpus.
|
CreateModelOptions.Builder |
monolingualCorpusFilename(java.lang.String monolingualCorpusFilename)
Set the monolingualCorpusFilename.
|
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.
|
CreateModelOptions.Builder |
parallelCorpusFilename(java.lang.String parallelCorpusFilename)
Set the parallelCorpusFilename.
|
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 name(java.lang.String name)
name
- the namepublic CreateModelOptions.Builder forcedGlossary(java.io.InputStream forcedGlossary)
forcedGlossary
- the forcedGlossarypublic CreateModelOptions.Builder forcedGlossaryFilename(java.lang.String forcedGlossaryFilename)
forcedGlossaryFilename
- the forcedGlossaryFilenamepublic CreateModelOptions.Builder parallelCorpus(java.io.InputStream parallelCorpus)
parallelCorpus
- the parallelCorpuspublic CreateModelOptions.Builder parallelCorpusFilename(java.lang.String parallelCorpusFilename)
parallelCorpusFilename
- the parallelCorpusFilenamepublic CreateModelOptions.Builder monolingualCorpus(java.io.InputStream monolingualCorpus)
monolingualCorpus
- the monolingualCorpuspublic CreateModelOptions.Builder monolingualCorpusFilename(java.lang.String monolingualCorpusFilename)
monolingualCorpusFilename
- the monolingualCorpusFilenamepublic 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 foundpublic CreateModelOptions.Builder monolingualCorpus(java.io.File monolingualCorpus) throws java.io.FileNotFoundException
monolingualCorpus
- the monolingualCorpusjava.io.FileNotFoundException
- if the file could not be found