protected void GenerateHmmTree() { _hmmPool = new HMMPool(_acousticModel, _unitManager); HMMTree = new HMMTree(_hmmPool, Dictionary, LanguageModel, AddFillerWords, LanguageWeight); _hmmPool.DumpInfo(); }
/** * /// Creates the HMMTree * * /// @param pool the pool of HMMs and units * /// @param dictionary the dictionary containing the pronunciations * /// @param lm the source of the set of words to add to the lex tree * /// @param addFillerWords if <code>false</code> add filler words * /// @param languageWeight the languageWeight */ public HMMTree(HMMPool pool, IDictionary dictionary, LanguageModel lm, Boolean addFillerWords, float languageWeight) { HMMPool = pool; Dictionary = dictionary; _lm = lm; _endNodeMap = new HashMap <Object, HMMNode[]>(); WordNodeMap = new HashMap <Pronunciation, WordNode>(); _addFillerWords = addFillerWords; _languageWeight = languageWeight; TimerPool.GetTimer(this, "Create HMM Tree").Start(); Compile(); TimerPool.GetTimer(this, "Create HMM Tree").Stop(); }
internal HMMTree(HMMPool hmmpool, dictionary.Dictionary dictionary, LanguageModel languageModel, bool flag, float num) { this.addSilenceWord = true; this.entryPoints = new HashSet(); this.exitPoints = new HashSet(); this.hmmPool = hmmpool; this.dictionary = dictionary; this.lm = languageModel; this.endNodeMap = new HashMap(); this.wordNodeMap = new HashMap(); this.addFillerWords = flag; this.languageWeight = num; this.logger = Logger.getLogger(ClassLiteral <HMMTree> .Value.getSimpleName()); this.compile(); }