kylm.model.ngram.smoother
Class MKNSmoother

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

public class MKNSmoother
extends KNSmoother

Calculate N-gram probabilities with Kneser-Ney smoothing

Author:
neubig
See Also:
Serialized Form

Constructor Summary
MKNSmoother()
           
MKNSmoother(float[][] discounts)
          Create a smoother with pre-set discounts
 
Method Summary
 java.lang.String getAbbr()
           
 java.lang.String getName()
           
 
Methods inherited from class kylm.model.ngram.smoother.KNSmoother
smooth
 
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

MKNSmoother

public MKNSmoother()

MKNSmoother

public MKNSmoother(float[][] discounts)
Create a smoother with pre-set discounts

Parameters:
discounts - The discounts to use
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class KNSmoother
Returns:
The name of this type of smoothing

getAbbr

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