public static class ModelMetadataDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ModelMetadataDetails |
build() |
ModelMetadataDetails.Builder |
configuration(Map<String,ConfigurationDetails> configuration)
model configuration details For PII : < ENTITY_TYPE , ConfigurationDetails> ex.“ORACLE”:{
“mode” : “MASK”,“maskingCharacter” : “&”,“leaveCharactersUnmasked”: 3,“isUnmaskedFromEnd”
true } For language translation : { “targetLanguageCodes” : ConfigurationDetails}
|
ModelMetadataDetails.Builder |
copy(ModelMetadataDetails model) |
ModelMetadataDetails.Builder |
endpointId(String endpointId)
Unique identifier endpoint OCID that should be used for inference
|
ModelMetadataDetails.Builder |
languageCode(String languageCode)
Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR :
Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi :
Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja :
Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN :
Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr :
Turkish - el : Greek - he : Hebrew
|
ModelMetadataDetails.Builder |
modelId(String modelId)
Unique identifier model OCID that should be used for inference
|
ModelMetadataDetails.Builder |
modelType(String modelType)
model type to used for inference allowed values are - LANGUAGE_SENTIMENT_ANALYSIS -
LANGUAGE_DETECTION - TEXT_CLASSIFICATION - NAMED_ENTITY_RECOGNITION -
KEY_PHRASE_EXTRACTION - LANGUAGE_PII_ENTITIES - LANGUAGE_TRANSLATION
|
public ModelMetadataDetails.Builder modelType(String modelType)
model type to used for inference allowed values are - LANGUAGE_SENTIMENT_ANALYSIS - LANGUAGE_DETECTION - TEXT_CLASSIFICATION - NAMED_ENTITY_RECOGNITION - KEY_PHRASE_EXTRACTION - LANGUAGE_PII_ENTITIES - LANGUAGE_TRANSLATION
modelType
- the value to setpublic ModelMetadataDetails.Builder modelId(String modelId)
Unique identifier model OCID that should be used for inference
modelId
- the value to setpublic ModelMetadataDetails.Builder endpointId(String endpointId)
Unique identifier endpoint OCID that should be used for inference
endpointId
- the value to setpublic ModelMetadataDetails.Builder languageCode(String languageCode)
Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR : Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he : Hebrew
languageCode
- the value to setpublic ModelMetadataDetails.Builder configuration(Map<String,ConfigurationDetails> configuration)
configuration
- the value to setpublic ModelMetadataDetails build()
public ModelMetadataDetails.Builder copy(ModelMetadataDetails model)
Copyright © 2016–2024. All rights reserved.