public class NGramProfilesPatched
extends java.lang.Object
NGramProfiles| Modifier and Type | Class and Description |
|---|---|
static interface |
NGramProfilesPatched.Ranker |
static interface |
NGramProfilesPatched.RankResult |
| Modifier and Type | Field and Description |
|---|---|
static java.text.DecimalFormat |
DF |
static char |
END_CHAR |
static double |
LOWSTATSAFETY |
static java.lang.String |
NOLANGNAME |
| Constructor and Description |
|---|
NGramProfilesPatched() |
NGramProfilesPatched(java.io.BufferedReader br) |
NGramProfilesPatched(java.io.File folder) |
NGramProfilesPatched(int mode) |
| Modifier and Type | Method and Description |
|---|---|
static char |
charAt(java.lang.CharSequence cs,
int pos) |
java.util.Set<de.spieleck.app.cngram.NGram> |
getAllNGrams() |
int |
getProfileCount() |
java.lang.String |
getProfileName(int i) |
NGramProfilesPatched.Ranker |
getRanker() |
protected void |
init(java.io.File folder) |
NGramProfilesPatched.RankResult |
rank(de.spieleck.app.cngram.NGramMetric metric,
de.spieleck.app.cngram.NGramProfile profile)
Note this class returns a complete match result, for the
sake of thread safety!
|
java.lang.String |
toString() |
public static final java.lang.String NOLANGNAME
public static final char END_CHAR
public static final java.text.DecimalFormat DF
public static final double LOWSTATSAFETY
public NGramProfilesPatched()
throws java.io.IOException
java.io.IOExceptionpublic NGramProfilesPatched(int mode)
throws java.io.IOException
java.io.IOExceptionpublic NGramProfilesPatched(java.io.BufferedReader br)
throws java.io.IOException
java.io.IOExceptionpublic NGramProfilesPatched(java.io.File folder)
throws java.io.IOException
java.io.IOExceptionpublic NGramProfilesPatched.Ranker getRanker()
public java.lang.String getProfileName(int i)
public static final char charAt(java.lang.CharSequence cs,
int pos)
public NGramProfilesPatched.RankResult rank(de.spieleck.app.cngram.NGramMetric metric, de.spieleck.app.cngram.NGramProfile profile)
public int getProfileCount()
public java.util.Set<de.spieleck.app.cngram.NGram> getAllNGrams()
protected void init(java.io.File folder)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2004-2012. All Rights Reserved.