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 |
forcedGlossaryContentType(String forcedGlossaryContentType)
Set the forcedGlossaryContentType.
|
CreateModelOptions.Builder |
name(String name)
Set the name.
|
CreateModelOptions.Builder |
parallelCorpus(File parallelCorpus)
Set the parallelCorpus.
|
CreateModelOptions.Builder |
parallelCorpus(InputStream parallelCorpus)
Set the parallelCorpus.
|
CreateModelOptions.Builder |
parallelCorpusContentType(String parallelCorpusContentType)
Set the parallelCorpusContentType.
|
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 forcedGlossaryContentType(String forcedGlossaryContentType)
forcedGlossaryContentType
- the forcedGlossaryContentTypepublic CreateModelOptions.Builder parallelCorpus(InputStream parallelCorpus)
parallelCorpus
- the parallelCorpuspublic CreateModelOptions.Builder parallelCorpusContentType(String parallelCorpusContentType)
parallelCorpusContentType
- the parallelCorpusContentTypepublic 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 © 2022 IBM Cloud. All rights reserved.