|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cybozu.labs.langdetect.Command
public class Command
LangDetect Command Line Interface
This is a command line interface of Language Detection Library "LandDetect".
| Constructor Summary | |
|---|---|
Command()
|
|
| Method Summary | |
|---|---|
void |
batchTest()
Batch Test of Language Detection (--batchtest option) |
void |
detectLang()
Language detection test for each file (--detectlang option) |
void |
generateProfile()
Generate Language Profile from Wikipedia Abstract Database File |
static void |
main(String[] args)
Command Line Interface |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Command()
| Method Detail |
|---|
public void generateProfile()
usage: --genprofile -d [abstracts directory] [language names]
public void detectLang()
usage: --detectlang -d [profile directory] -a [alpha] -s [seed] [test file(s)]
public void batchTest()
usage: --batchtest -d [profile directory] -a [alpha] -s [seed] [test data(s)]The format of test data(s):
[correct language name]\t[text body for test]\n
public static void main(String[] args)
args - command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||