public static class LanguageIdentificationOptions.Builder extends Object
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