/** * /// Constructs a NonEmittingLexTreeHMMState * * * * /// @param hmmState the hmm state associated with this unit * * /// @param wordSequence the word history * /// @param probability the probability of the transition occurring * */ public LexTreeNonEmittingHMMState(HMMNode hmmNode, WordSequence wordSequence, float smearTerm, float smearProb, IHMMState hmmState, float probability, Node parentNode, LexTreeLinguist _parent) : base(hmmNode, wordSequence, smearTerm, smearProb, hmmState, _parent.LogOne, probability, parentNode, _parent) { }
/** * /// Constructs a LexTreeUnitState * * /// @param wordSequence the history of words */ public LexTreeUnitState(HMMNode hmmNode, WordSequence wordSequence, float smearTerm, float smearProb, float languageProbability, float insertionProbability, LexTreeLinguist parent) : this(hmmNode, wordSequence, smearTerm, smearProb, languageProbability, insertionProbability, null, parent) { }
/** * /// Creates a LexTreeState. * * /// @param node the node associated with this state * /// @param wordSequence the history of words up until this point * * */ public LexTreeState(Node node, WordSequence wordSequence, float smearTerm, float smearProb, LexTreeLinguist parent) { Parent = parent; _node = node; _wordSequence = wordSequence; SmearTerm = smearTerm; SmearProb = smearProb; }
/** * /// Constructs a LexTreeUnitState * * * /// @param wordSequence the history of words * * * * */ public LexTreeEndUnitState(EndNode endNode, WordSequence wordSequence, float smearTerm, float smearProb, float languageProbability, float insertionProbability, LexTreeLinguist _parent) : base(endNode, wordSequence, smearTerm, smearProb, _parent) { _logLanguageProbability = languageProbability; _logInsertionProbability = insertionProbability; //this.LogInfo("LTEUS " + logLanguageProbability + " " + logInsertionProbability); }
/** * /// Constructs a LexTreeUnitState * * /// @param wordSequence the history of words */ public LexTreeUnitState(HMMNode hmmNode, WordSequence wordSequence, float smearTerm, float smearProb, float languageProbability, float insertionProbability, Node parentNode, LexTreeLinguist parent) : base(hmmNode, wordSequence, smearTerm, smearProb, parent) { _logInsertionProbability = insertionProbability; _logLanguageProbability = languageProbability; _parentNode = parentNode; _parent = parent; }
/** * /// Constructs a LexTreeWordState * * /// @param wordNode the word node * /// @param wordSequence the sequence of words triphone context * /// @param languageProbability the probability of this word */ public LexTreeWordState(WordNode wordNode, HMMNode lastNode, WordSequence wordSequence, float smearTerm, float smearProb, float languageProbability, LexTreeLinguist _parent) : base(wordNode, wordSequence, smearTerm, smearProb, _parent) { // Trace.WriteLine(string.Format("LexTreeWordState Created with values wordNode: {0}, lastNode: {1}, wordSequence: {2}, smearTerm: {3}, smearProb: {4}, languageProbability: {5}", // wordNode, lastNode, wordSequence, smearTerm, smearProb, languageProbability)); this._lastNode = lastNode; _logLanguageProbability = languageProbability; //if (wordNode.ToString().Contains("NSN")) //{ // this.LogInfo("FOUND NOISE!"); //} }