com.cybozu.labs.langdetect
Class Command

java.lang.Object
  extended by com.cybozu.labs.langdetect.Command

public class Command
extends Object

LangDetect Command Line Interface

This is a command line interface of Language Detection Library "LandDetect".

Author:
Nakatani Shuyo

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

Command

public Command()
Method Detail

generateProfile

public void generateProfile()
Generate Language Profile from Wikipedia Abstract Database File
 usage: --genprofile -d [abstracts directory] [language names]
 


detectLang

public void detectLang()
Language detection test for each file (--detectlang option)
 usage: --detectlang -d [profile directory] -a [alpha] -s [seed] [test file(s)]
 


batchTest

public void batchTest()
Batch Test of Language Detection (--batchtest option)
 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
 


main

public static void main(String[] args)
Command Line Interface

Parameters:
args - command line arguments


Copyright © 2012. All Rights Reserved.