edu.cmu.sphinx.research.parallel
Class FeatureScoreCombiner

java.lang.Object
  extended byedu.cmu.sphinx.research.parallel.FeatureScoreCombiner
All Implemented Interfaces:
ScoreCombiner

public class FeatureScoreCombiner
extends java.lang.Object
implements ScoreCombiner

Combines the various unit feature stream scores in a CombineToken. Each feature stream is represented as a ParallelToken in a CombineToken. Suppose that the CombineToken has two ParallelTokens, P1 and P2, then the combined score is given by:

 P1.getFeatureScore() * P1.getEta() + P2.getFeatureScore() * P2.getEta()
 
where the feature scores are in LogMath logbase, and the method getEta() returns the eta value of that particular feature stream.


Constructor Summary
FeatureScoreCombiner()
           
 
Method Summary
 void combineScore(CombineToken token)
          Combines the scores from all the feature stream in the given CombineToken.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureScoreCombiner

public FeatureScoreCombiner()
Method Detail

combineScore

public void combineScore(CombineToken token)
Combines the scores from all the feature stream in the given CombineToken. The feature stream(s) are represented in the form of ParallelTokens in the given CombineToken.

Specified by:
combineScore in interface ScoreCombiner
Parameters:
token - the CombineToken on which to combine the feature stream scores