public static interface TaskConfig.Builder extends SdkPojo, CopyableBuilder<TaskConfig.Builder,TaskConfig>
| Modifier and Type | Method and Description |
|---|---|
default TaskConfig.Builder |
documentClassificationConfig(Consumer<DocumentClassificationConfig.Builder> documentClassificationConfig)
Configuration required for a classification model.
|
TaskConfig.Builder |
documentClassificationConfig(DocumentClassificationConfig documentClassificationConfig)
Configuration required for a classification model.
|
default TaskConfig.Builder |
entityRecognitionConfig(Consumer<EntityRecognitionConfig.Builder> entityRecognitionConfig)
Configuration required for an entity recognition model.
|
TaskConfig.Builder |
entityRecognitionConfig(EntityRecognitionConfig entityRecognitionConfig)
Configuration required for an entity recognition model.
|
TaskConfig.Builder |
languageCode(LanguageCode languageCode)
Language code for the language that the model supports.
|
TaskConfig.Builder |
languageCode(String languageCode)
Language code for the language that the model supports.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTaskConfig.Builder languageCode(String languageCode)
Language code for the language that the model supports.
languageCode - Language code for the language that the model supports.LanguageCode,
LanguageCodeTaskConfig.Builder languageCode(LanguageCode languageCode)
Language code for the language that the model supports.
languageCode - Language code for the language that the model supports.LanguageCode,
LanguageCodeTaskConfig.Builder documentClassificationConfig(DocumentClassificationConfig documentClassificationConfig)
Configuration required for a classification model.
documentClassificationConfig - Configuration required for a classification model.default TaskConfig.Builder documentClassificationConfig(Consumer<DocumentClassificationConfig.Builder> documentClassificationConfig)
Configuration required for a classification model.
This is a convenience method that creates an instance of theDocumentClassificationConfig.Builder
avoiding the need to create one manually via DocumentClassificationConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to documentClassificationConfig(DocumentClassificationConfig).
documentClassificationConfig - a consumer that will call methods on DocumentClassificationConfig.BuilderdocumentClassificationConfig(DocumentClassificationConfig)TaskConfig.Builder entityRecognitionConfig(EntityRecognitionConfig entityRecognitionConfig)
Configuration required for an entity recognition model.
entityRecognitionConfig - Configuration required for an entity recognition model.default TaskConfig.Builder entityRecognitionConfig(Consumer<EntityRecognitionConfig.Builder> entityRecognitionConfig)
Configuration required for an entity recognition model.
This is a convenience method that creates an instance of theEntityRecognitionConfig.Builder avoiding
the need to create one manually via EntityRecognitionConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to entityRecognitionConfig(EntityRecognitionConfig).
entityRecognitionConfig - a consumer that will call methods on EntityRecognitionConfig.BuilderentityRecognitionConfig(EntityRecognitionConfig)Copyright © 2023. All rights reserved.