/** * /// Create the entry point table give the set of all possible entry point units * * /// @param entryPointCollection the set of possible entry points */ public EntryPointTable(IEnumerable <Unit> entryPointCollection, HMMTree parent) { _entryPoints = new Dictionary <Unit, EntryPoint>(); foreach (var unit in entryPointCollection) { Java.Put(_entryPoints, unit, new EntryPoint(unit, parent)); } }
protected void GenerateHmmTree() { _hmmPool = new HMMPool(_acousticModel, _unitManager); HMMTree = new HMMTree(_hmmPool, Dictionary, LanguageModel, AddFillerWords, LanguageWeight); _hmmPool.DumpInfo(); }
/// <summary> /// Creates an entry point for the given unit /// </summary> /// <param name="baseUnit">the EntryPoint is created for this unit</param> /// <param name="parent"></param> public EntryPoint(Unit baseUnit, HMMTree parent) { _parent = parent; BaseUnit = baseUnit; Node = new Node(LogMath.LogZero); UnitToEntryPointMap = new Dictionary <Unit, Node>(); _singleUnitWords = new List <Pronunciation>(); Probability = LogMath.LogZero; }
/* * /// (non-Javadoc) * * /// @see edu.cmu.sphinx.linguist.Linguist#deallocate() */ public override void Deallocate() { if (_acousticModel != null) { _acousticModel.Deallocate(); } if (Dictionary != null) { Dictionary.Deallocate(); } if (LanguageModel != null) { LanguageModel.Deallocate(); } HMMTree = null; }