public static class LanguageDetector.WeightedLocale extends Object
Modifier and Type | Field and Description |
---|---|
double |
confidence
Naive bayesian probability
|
String |
language
Estimated language
|
Constructor and Description |
---|
WeightedLocale(String language,
double best)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
asMap() |
static LanguageDetector.WeightedLocale |
fromMap(Map<String,Object> map) |
Locale |
getLocale() |
String |
toString() |
public double confidence
public WeightedLocale(String language, double best)
language
- best
- public static LanguageDetector.WeightedLocale fromMap(Map<String,Object> map)
map
-