公用抽象類別 LanguagePrediction
語言代碼及其機率。做為 LanguageDetector 輸出內容的一部分。
公用建構函式
公用方法
| static LanguagePrediction | |
| 抽象字串 |
languageCode()
預測的 i18n 語言 / 語言代碼代碼。
|
| 抽象 浮點值 |
probability()
預測結果的可能性。
|
繼承的方法
公用建構函式
public LanguagePrediction ()
公用方法
public static LanguagePrediction create (String languageCode、浮點機率)
參數
| languageCode | 國際化語言 / 語言代碼代碼,例如「en」代表英文、「uz」代表烏茲別克語、「ja」- 日文 (羅馬拼音)。 |
|---|---|
| 機率 | 預測結果的可能性。 |
public 抽象 浮點值 機率 ()
預測結果的可能性。