public final class Identificator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Detector |
detector |
private Language |
language |
Constructor and Description |
---|
Identificator() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String word) |
java.lang.String |
getLanguage()
Get the detected language with highest probability
if detection probability is above 0.3 (30%)
Underlaying detector differentiates zh-cn and zh-tw, these are returned as zh here.
|
double |
getProbability()
Get the probability of the detected language (returned by
getLanguage() ) |
public void add(java.lang.String word)
public java.lang.String getLanguage()
public double getProbability()
getLanguage()
)