edu.cmu.sphinx.research.parallel
Class FeatureScoreCombiner
java.lang.Object
edu.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.
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 |
FeatureScoreCombiner
public FeatureScoreCombiner()
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