|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkylm.model.ngram.smoother.NgramSmoother
kylm.model.ngram.smoother.AbsoluteSmoother
kylm.model.ngram.smoother.KNSmoother
public class KNSmoother
Calculate N-gram probabilities with Kneser-Ney smoothing
Constructor Summary | |
---|---|
KNSmoother()
|
Method Summary | |
---|---|
java.lang.String |
getAbbr()
|
java.lang.String |
getName()
|
void |
smooth(NgramLM lm)
Smooth all the n-gram probabilities in a language model according to the appropriate smoothing algorithm. |
Methods inherited from class kylm.model.ngram.smoother.NgramSmoother |
---|
equals, getCutoffs, getDebugLevel, getSmoothUnigrams, setCutoffs, setDebugLevel, setSmoothUnigrams |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KNSmoother()
Method Detail |
---|
public void smooth(NgramLM lm)
NgramSmoother
smooth
in class AbsoluteSmoother
lm
- The N-gram language model to smooth.public java.lang.String getName()
getName
in class AbsoluteSmoother
public java.lang.String getAbbr()
getAbbr
in class AbsoluteSmoother
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |