LanguageIdentificationOptions.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
-
LanguageIdentificationOptions.Builder is used to create a LanguageIdentificationOptions instance.
-
The builder has methods to set the confidence threshold and the executor for language identification tasks.
-
The build method creates the final LanguageIdentificationOptions instance from the builder settings.
Builder to create a LanguageIdentificationOptions
instance.
Public Constructor Summary
Public Method Summary
LanguageIdentificationOptions instance.
LanguageIdentifier.identifyLanguage(String) or
LanguageIdentifier.identifyPossibleLanguages(String) call.
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public LanguageIdentificationOptions build ()
Creates a new LanguageIdentificationOptions
instance.
public LanguageIdentificationOptions.Builder setConfidenceThreshold (float confidenceThreshold)
Sets the minimum confidence for the
LanguageIdentifier.identifyLanguage(String) or
LanguageIdentifier.identifyPossibleLanguages(String) call.
If no value is set, a default value is used, depending on the method call.
Parameters
| confidenceThreshold | the minimum confidence for the
LanguageIdentifier.identifyLanguage(String) or
LanguageIdentifier.identifyPossibleLanguages(String) call |
|---|
Returns
- this object, for chaining method calls