|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uottawa.balie.LanguageIdentification
public class LanguageIdentification
Methods for training, testing and using language identification.
Constructor Summary | |
---|---|
LanguageIdentification()
The latest LangID model (if found) is loaded upon construction. |
Method Summary | |
---|---|
java.lang.String |
DetectLanguage(java.lang.String pi_Text)
Gives the language with the highest likelihood. |
LanguageIdentificationGuess[] |
GetLanguageLikelihood(java.lang.String pi_Text)
Gives the likelihood of every language given a text. |
static void |
main(java.lang.String[] args)
Execute TrainLanguageIdentification() |
static void |
TrainLanguageIdentification()
Trains and Tests the language identification model. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LanguageIdentification()
Method Detail |
---|
public LanguageIdentificationGuess[] GetLanguageLikelihood(java.lang.String pi_Text)
pi_Text
- A text for which we want to guess the language
public java.lang.String DetectLanguage(java.lang.String pi_Text)
pi_Text
- A text for which we want to guess the language
Balie
for enumeration)Balie
public static void TrainLanguageIdentification()
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |