|
||||||||||
| 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.WBSmoother
public class WBSmoother
Calculate N-gram probabilities with Witten-Bell smoothing
| Constructor Summary | |
|---|---|
WBSmoother()
Create a smoother and estimate the discounts automatically when it comes time to smooth |
|
| 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 WBSmoother()
| Method Detail |
|---|
public void smooth(NgramLM lm)
NgramSmoother
smooth in class NgramSmootherlm - The N-gram language model to smooth.public java.lang.String getAbbr()
getAbbr in class NgramSmootherpublic java.lang.String getName()
getName in class NgramSmoother
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||