public class Command
extends java.lang.Object
This is a command line interface of Language Detection Library "LandDetect".
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
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(java.lang.String[] args)
Command Line Interface
|
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(java.lang.String[] args)
args
- command line arguments