Class LanguageOptions
java.lang.Object
com.codename1.ai.language.LanguageOptions
Reusable options shared by language identification, translation, and
Smart Reply operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackend(LanguageBackend value) floatminimumConfidence(float value) Sets the minimum language-identification confidence, clamped to 0..1.
-
Constructor Details
-
LanguageOptions
public LanguageOptions()
-
-
Method Details
-
backend
- Parameters:
value- backend selector;nullrestores automatic selection- Returns:
- this options object
-
minimumConfidence
Sets the minimum language-identification confidence, clamped to 0..1. NaN has no meaningful ordering and is rejected instead of being passed to a platform language identifier.- Parameters:
value- requested threshold- Returns:
- this options object
- Throws:
IllegalArgumentException- ifvalueis NaN
-
getBackend
- Returns:
- selected backend, never
null
-
getMinimumConfidence
public float getMinimumConfidence()- Returns:
- language-identification threshold in the range 0..1
-