public static class CreateModelOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String baseModelId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateModelOptions.Builder |
baseModelId(String baseModelId)
Set the baseModelId.
|
CreateModelOptions |
build()
Builds a CreateModelOptions.
|
CreateModelOptions.Builder |
forcedGlossary(File forcedGlossary)
Set the forcedGlossary.
|
CreateModelOptions.Builder |
forcedGlossary(InputStream forcedGlossary)
Set the forcedGlossary.
|
CreateModelOptions.Builder |
name(String name)
Set the name.
|
CreateModelOptions.Builder |
parallelCorpus(File parallelCorpus)
Set the parallelCorpus.
|
CreateModelOptions.Builder |
parallelCorpus(InputStream parallelCorpus)
Set the parallelCorpus.
|
public Builder()
public Builder(String baseModelId)
baseModelId
- the baseModelIdpublic CreateModelOptions build()
public CreateModelOptions.Builder baseModelId(String baseModelId)
baseModelId
- the baseModelIdpublic CreateModelOptions.Builder forcedGlossary(InputStream forcedGlossary)
forcedGlossary
- the forcedGlossarypublic CreateModelOptions.Builder parallelCorpus(InputStream parallelCorpus)
parallelCorpus
- the parallelCorpuspublic CreateModelOptions.Builder name(String name)
name
- the namepublic CreateModelOptions.Builder forcedGlossary(File forcedGlossary) throws FileNotFoundException
forcedGlossary
- the forcedGlossaryFileNotFoundException
- if the file could not be foundpublic CreateModelOptions.Builder parallelCorpus(File parallelCorpus) throws FileNotFoundException
parallelCorpus
- the parallelCorpusFileNotFoundException
- if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.