|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.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()
|
Method Summary | |
---|---|
void |
allocate()
Allocates resources for this scorer |
Scoreable |
calculateScores(java.util.List<Token> scoreableList)
Scores the given set of states. |
void |
deallocate()
Deallocates resouces 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 |
java.lang.String |
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()
Method Detail |
---|
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.public Scoreable calculateScores(java.util.List<Token> scoreableList)
calculateScores
in interface AcousticScorer
scoreableList
- A list containing scoreable objects to be scored
null
if there are no more features to scorepublic void startRecognition()
AcousticScorer
startRecognition
in interface AcousticScorer
public void stopRecognition()
AcousticScorer
stopRecognition
in interface AcousticScorer
public void allocate()
AcousticScorer
allocate
in interface AcousticScorer
public void deallocate()
AcousticScorer
deallocate
in interface AcousticScorer
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |