Package com.oracle.bmc.ailanguage.model
Class BatchDetectDominantLanguageDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.ailanguage.model.BatchDetectDominantLanguageDetails.Builder
-
- Enclosing class:
- BatchDetectDominantLanguageDetails
public static class BatchDetectDominantLanguageDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
alias
public BatchDetectDominantLanguageDetails.Builder alias(String alias)
Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.- Parameters:
alias
- the value to set- Returns:
- this builder
-
shouldIgnoreTransliteration
public 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.
- Parameters:
shouldIgnoreTransliteration
- the value to set- Returns:
- this builder
-
charsToConsider
public 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.
- Parameters:
charsToConsider
- the value to set- Returns:
- this builder
-
endpointId
public 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.
- Parameters:
endpointId
- the value to set- Returns:
- this builder
-
compartmentId
public BatchDetectDominantLanguageDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that calls the API, inference will be served from pre trained model- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
documents
public BatchDetectDominantLanguageDetails.Builder documents(List<DominantLanguageDocument> documents)
List of Documents for detect language.- Parameters:
documents
- the value to set- Returns:
- this builder
-
build
public BatchDetectDominantLanguageDetails build()
-
copy
public BatchDetectDominantLanguageDetails.Builder copy(BatchDetectDominantLanguageDetails model)
-
-