kylm.model.ngram.smoother
Class MLSmoother

java.lang.Object
  extended by kylm.model.ngram.smoother.NgramSmoother
      extended by kylm.model.ngram.smoother.MLSmoother
All Implemented Interfaces:
java.io.Serializable

public class MLSmoother
extends NgramSmoother

Calculate N-gram maximum-likelihood probabilities (no smoothing)

Author:
neubig
See Also:
Serialized Form

Constructor Summary
MLSmoother()
           
 
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

MLSmoother

public MLSmoother()
Method Detail

smooth

public void smooth(NgramLM lm)
Description copied from class: NgramSmoother
Smooth all the n-gram probabilities in a language model according to the appropriate smoothing algorithm.

Specified by:
smooth in class NgramSmoother
Parameters:
lm - The N-gram language model to smooth.

getAbbr

public java.lang.String getAbbr()
Specified by:
getAbbr in class NgramSmoother
Returns:
The abbreviation given to this type of smoothing

getName

public java.lang.String getName()
Specified by:
getName in class NgramSmoother
Returns:
The name of this type of smoothing