public class Util
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static NgramExtractor |
ngramExtractor |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCharSequence(LangProfile langProfile,
java.lang.CharSequence text) |
static double[] |
makeInternalPrioMap(@NotNull java.util.Map<LdLocale,java.lang.Double> langWeightingMap,
@NotNull java.util.List<LdLocale> langlist) |
static double |
normalizeProb(double[] prob)
normalize probabilities and check convergence by the maximum probability
|
static java.lang.String |
unicodeEncode(java.lang.String s)
unicode encoding (for verbose mode)
|
static java.lang.String |
wordProbToString(double[] prob,
java.util.List<LdLocale> langlist) |
private static final NgramExtractor ngramExtractor
public static void addCharSequence(LangProfile langProfile, java.lang.CharSequence text)
public static java.lang.String unicodeEncode(java.lang.String s)
public static double normalizeProb(double[] prob)
public static java.lang.String wordProbToString(double[] prob,
java.util.List<LdLocale> langlist)