de.spieleck.app.cngram
Class RunNGram
java.lang.Object
de.spieleck.app.cngram.RunNGram
public class RunNGram
- extends java.lang.Object
Commandline interface that runs a ngram analysis over submitted text,
results can be used for automatic language identification.
- Version:
- $Revision: 2 $ $Date: 2006-03-27 23:00:21 +0200 (Mo, 27 Mrz 2006) $ $Author: nestefan $
- Author:
- Frank S. Nestel, $Author: nestefan $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CREATE
public static final int CREATE
- See Also:
- Constant Field Values
SIMILARITY
public static final int SIMILARITY
- See Also:
- Constant Field Values
SCORE
public static final int SCORE
- See Also:
- Constant Field Values
LANG
public static final int LANG
- See Also:
- Constant Field Values
TEST
public static final int TEST
- See Also:
- Constant Field Values
LANG2
public static final int LANG2
- See Also:
- Constant Field Values
LANG2B
public static final int LANG2B
- See Also:
- Constant Field Values
CHECK
public static final int CHECK
- See Also:
- Constant Field Values
PROFILES
public static final int PROFILES
- See Also:
- Constant Field Values
DF
public static final java.text.DecimalFormat DF
DFE
public static final java.text.DecimalFormat DFE
RunNGram
public RunNGram()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
createReader
public static java.io.Reader createReader(java.lang.String textfile,
java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException
printRankResult
public static void printRankResult(java.lang.String msg,
NGramProfiles.RankResult res,
long dt)
create
public static NGramProfileImpl create(java.lang.String textfile,
java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException