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