public static class BatchDetectDominantLanguageDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
public BatchDetectDominantLanguageDetails.Builder alias(String alias)
Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
alias
- the value to setpublic BatchDetectDominantLanguageDetails.Builder shouldIgnoreTransliteration(Boolean shouldIgnoreTransliteration)
Specifies whether to consider or ignore transliteration. For example “hi, aap kaise ho? sab kuch teek hai? I will call you tomorrow.” would be detected as English when ignore transliteration=true, Hindi when ignoreTransliteration=false.
shouldIgnoreTransliteration
- the value to setpublic BatchDetectDominantLanguageDetails.Builder charsToConsider(Integer charsToConsider)
default value is None. Specifies maximum number of characters to consider for determining the dominant language. If unspecified, then optimum number characters will be considered. If 0 is specified then all the characters are used to determine the language. If the value is greater than 0, then specified number of characters will be considered from the beginning of the text.
charsToConsider
- the value to setpublic BatchDetectDominantLanguageDetails.Builder endpointId(String endpointId)
The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
endpointId
- the value to setpublic BatchDetectDominantLanguageDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that calls the API, inference will be served from pre trained model
compartmentId
- the value to setpublic BatchDetectDominantLanguageDetails.Builder documents(List<DominantLanguageDocument> documents)
List of Documents for detect language.
documents
- the value to setpublic BatchDetectDominantLanguageDetails build()
public BatchDetectDominantLanguageDetails.Builder copy(BatchDetectDominantLanguageDetails model)
Copyright © 2016–2024. All rights reserved.