Commits

Gregory Druck  committed e39493b

Fixed bug in HMM.

  • Participants
  • Parent commits 6455554

Comments (0)

Files changed (1)

File src/cc/mallet/fst/HMM.java

 					// double logEmissionProb =
 					// hmm.emissionMultinomial[source.getIndex()].logProbability
 					// (inputSeq.get (inputPosition));
-					double logEmissionProb = hmm.emissionMultinomial[transIndex]
+					int destIndex = source.getDestinationState(transIndex).getIndex();
+					double logEmissionProb = hmm.emissionMultinomial[destIndex]
 							.logProbability(inputSeq.get(inputPosition));
 					double logTransitionProb = hmm.transitionMultinomial[source
 							.getIndex()]