public abstract class ScoreCachingSenone extends java.lang.Object implements Senone
Subclasses should implement the abstract calculateScore(edu.cmu.sphinx.frontend.Data)
method,
which is called by the getScore(edu.cmu.sphinx.frontend.Data)
method to calculate the score
for each cache miss.
Note: this implementation is thread-safe and can be safely used across different threads without external synchronization.
Constructor and Description |
---|
ScoreCachingSenone() |
Modifier and Type | Method and Description |
---|---|
protected abstract float |
calculateScore(Data feature)
Calculates the score for this senone based upon the given feature.
|
float |
getScore(Data feature)
Gets the cached score for this senone based upon the given feature.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateComponentScore, dump, getID, getLogMixtureWeights, getMixtureComponents
public float getScore(Data feature)
calculateScore(edu.cmu.sphinx.frontend.Data)
,
cached, and then returned.protected abstract float calculateScore(Data feature)
feature
- the feature vector to score this senone against