org.finetracker.simple_lm
Class HTKLanguageModel

java.lang.Object
  extended by org.finetracker.simple_lm.LanguageModel
      extended by org.finetracker.simple_lm.HTKLanguageModel

public class HTKLanguageModel
extends LanguageModel

This constructs a bigram model using a set of WordCounts. The backing off scheme used is described in the HTKbook (HTKbook 17.14.2, real_page: 275, pdf_page: 284). The elimination of infrequent unigrams is the responsibility of the WordCount class (this happens slightly different from how this is done in the HTK-book).

Author:
Albert Gerritsen

Field Summary
 
Fields inherited from class org.finetracker.simple_lm.LanguageModel
EOS_MARKER, SOS_MARKER, UNK_MARKER
 
Constructor Summary
HTKLanguageModel(int bigramFloor, double bigramDiscount, WordCount wordCount)
           
 
Method Summary
 
Methods inherited from class org.finetracker.simple_lm.LanguageModel
p, p, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTKLanguageModel

public HTKLanguageModel(int bigramFloor,
                        double bigramDiscount,
                        WordCount wordCount)