edu.cmu.sphinx.decoder
Class Decoder
java.lang.Object
edu.cmu.sphinx.decoder.AbstractDecoder
edu.cmu.sphinx.decoder.Decoder
- All Implemented Interfaces:
- ResultProducer, Configurable
public class Decoder
- extends AbstractDecoder
The primary decoder class
|
Method Summary |
Result |
decode(java.lang.String referenceText)
Decode frames until recognition is complete. |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PROP_FEATURE_BLOCK_SIZE
@S4Integer(defaultValue=100000)
public static final java.lang.String PROP_FEATURE_BLOCK_SIZE
- The property for the number of features to recognize at once.
- See Also:
- Constant Field Values
featureBlockSize
private int featureBlockSize
Decoder
public Decoder()
Decoder
public Decoder(SearchManager searchManager,
boolean fireNonFinalResults,
boolean autoAllocate,
java.util.List<ResultListener> resultListeners,
int featureBlockSize)
- Parameters:
searchManager - fireNonFinalResults - autoAllocate - resultListeners - featureBlockSize -
newProperties
public void newProperties(PropertySheet ps)
throws PropertyException
- Description copied from interface:
Configurable
- This method is called when this configurable component needs to be reconfigured.
- Specified by:
newProperties in interface Configurable- Overrides:
newProperties in class AbstractDecoder
- Parameters:
ps - a property sheet holding the new data
- Throws:
PropertyException - if there is a problem with the properties.
decode
public Result decode(java.lang.String referenceText)
- Decode frames until recognition is complete.
- Specified by:
decode in class AbstractDecoder
- Parameters:
referenceText - the reference text (or null)
- Returns:
- a result