|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.util.props.ConfigurableAdapter
edu.cmu.sphinx.decoder.scorer.AbstractScorer
public abstract class AbstractScorer
Implements some basic scorer functionality but keeps specific scoring open for sub-classes.
| Field Summary | |
|---|---|
static java.lang.String |
FEATURE_FRONTEND
Property the defines the frontend to retrieve features from for scoring |
static java.lang.String |
SCORE_NORMALIZER
An opotional post-processor for computed scores that will normalize scores. |
| Constructor Summary | |
|---|---|
AbstractScorer()
|
|
AbstractScorer(BaseDataProcessor frontEnd,
ScoreNormalizer scoreNormalizer)
|
|
| Method Summary | |
|---|---|
void |
allocate()
Allocates resources for this scorer |
Data |
calculateScores(java.util.List<? extends Scoreable> scoreableList)
Scores the given set of states. |
void |
deallocate()
Deallocates resources for this scorer |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
void |
startRecognition()
starts the scorer |
void |
stopRecognition()
stops the scorer |
| Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter |
|---|
getName, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@S4Component(type=BaseDataProcessor.class) public static final java.lang.String FEATURE_FRONTEND
@S4Component(type=ScoreNormalizer.class,
mandatory=false)
public static final java.lang.String SCORE_NORMALIZER
| Constructor Detail |
|---|
public AbstractScorer()
public AbstractScorer(BaseDataProcessor frontEnd,
ScoreNormalizer scoreNormalizer)
frontEnd - the frontend to retrieve features from for scoringscoreNormalizer - optional post-processor for computed scores that will normalize scores. If not set, no normalization will
applied and the token scores will be returned unchanged.| Method Detail |
|---|
public void newProperties(PropertySheet ps)
throws PropertyException
Configurable
newProperties in interface ConfigurablenewProperties in class ConfigurableAdapterps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.public Data calculateScores(java.util.List<? extends Scoreable> scoreableList)
calculateScores in interface AcousticScorerscoreableList - A list containing scoreable objects to be scored
null if there are no more features to scorepublic void startRecognition()
AcousticScorer
startRecognition in interface AcousticScorerpublic void stopRecognition()
AcousticScorer
stopRecognition in interface AcousticScorerpublic void allocate()
AcousticScorer
allocate in interface AcousticScorerpublic void deallocate()
AcousticScorer
deallocate in interface AcousticScorer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||