Jacson

de.spieleck.app.cngram
Class RunNGram

java.lang.Object
  extended by 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 $

Field Summary
static int CHECK
           
static int CREATE
           
static java.text.DecimalFormat DF
           
static java.text.DecimalFormat DFE
           
static int LANG
           
static int LANG2
           
static int LANG2B
           
static int PROFILES
           
static int SCORE
           
static int SIMILARITY
           
static int TEST
           
 
Constructor Summary
RunNGram()
           
 
Method Summary
static NGramProfileImpl create(java.lang.String textfile, java.lang.String encoding)
           
static java.io.Reader createReader(java.lang.String textfile, java.lang.String encoding)
           
static void main(java.lang.String[] args)
           
static void printRankResult(java.lang.String msg, NGramProfiles.RankResult res, long dt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

RunNGram

public RunNGram()
Method Detail

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

spieleck.de