public abstract class
LanguagePrediction
A language code and its probability. Used as part of the output of LanguageDetector.
Public Constructors
Public Methods
| static LanguagePrediction |
create(String languageCode, float probability)
Creates a
ERROR(/LanguageDetectorPrediction) instance. |
| abstract String |
languageCode()
The i18n language / locale code for the prediction.
|
| abstract float |
probability()
The probability for the prediction.
|
Inherited Methods
Public Constructors
public LanguagePrediction ()
Public Methods
public static LanguagePrediction create (String languageCode, float probability)
Creates a ERROR(/LanguageDetectorPrediction) instance.
Parameters
| languageCode | An i18n language / locale code, e.g. "en" for English, "uz" for Uzbek, "ja"-Latn for Japanese (romaji). |
|---|---|
| probability | The probability for the prediction. |
public abstract float probability ()
The probability for the prediction.