AI-generated Key Takeaways
-
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
|
Builder()
|
Public Method Summary
| LanguageIdentificationOptions |
build()
Creates a new
LanguageIdentificationOptions instance.
|
| LanguageIdentificationOptions.Builder |
setConfidenceThreshold(float confidenceThreshold)
Sets the minimum confidence for the
LanguageIdentifier.identifyLanguage(String) or
LanguageIdentifier.identifyPossibleLanguages(String) call.
|
| LanguageIdentificationOptions.Builder |
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