/** * /// 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) { }
public PhoneHmmSearchState(IHMMState hmmState, AllphoneLinguist linguist, float insertionProb, float languageProb) { _state = hmmState; _linguist = linguist; InsertionProbability = insertionProb; LanguageProbability = languageProb; }
/** * /// Constructs a LexTreeHMMState * * /// @param hmmNode the HMM state associated with this unit * /// @param wordSequence the word history * /// @param languageProbability the probability of the transition * /// @param insertionProbability the probability of the transition */ public LexTreeHmmState(HMMNode hmmNode, WordSequence wordSequence, float smearTerm, float smearProb, IHMMState hmmState, float languageProbability, float insertionProbability, Node parentNode, LexTreeLinguist parent) : base(hmmNode, wordSequence, smearTerm, smearProb, parent) { HmmState = hmmState; _parentNode = parentNode; _logLanguageProbability = languageProbability; _logInsertionProbability = insertionProbability; }
/** * /// Given a unit state, return the set of sentence hmm states associated with the unit * * /// @param unitState the unit state of intereset * /// @return the hmm tree for the unit */ private HMMStateState GetHMMStates(UnitState unitState) { HMMStateState hmmTree; HMMStateState finalState; Unit unit = unitState.Unit; HMMPosition position = unitState.GetPosition(); IHMM hmm = _parent._acousticModel.LookupNearestHMM(unit, position, false); IHMMState initialState = hmm.GetInitialState(); hmmTree = new HMMStateState(unitState, initialState); AttachState(unitState, hmmTree, LogOne, LogOne); AddStateToCache(hmmTree); finalState = ExpandHMMTree(unitState, hmmTree); return(finalState); }
/** * /// Creates a NonEmittingHMMState * * /// @param parent the parent of this state * /// @param hmmState the hmmState associated with this state */ public NonEmittingHMMState(SentenceHMMState parent, IHMMState hmmState) : base(parent, hmmState) { }
/** * /// Constructs an HMMStateArc * * /// @param hmmState destination state for this arc * /// @param probability the probability for this transition */ public HmmStateArc(IHMMState hmmState, float probability) { HmmState = hmmState; LogProbability = probability; }
/** * /// Creates a HMMStateState * * /// @param parent the parent of this state * /// @param hmmState the hmmState associated with this state */ public HMMStateState(SentenceHMMState parent, IHMMState hmmState) : base("S", parent, hmmState.State) { _hmmState = hmmState; _isEmitting = hmmState.IsEmitting; }