|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.decoder.AbstractDecoder
public abstract class AbstractDecoder
An abstract decoder which implements all functionality which is indpendent of the used decoding-pardigm (pull/push).
| Field Summary | |
|---|---|
static java.lang.String |
AUTO_ALLOCATE
If set to true the used search-manager will be automatically allocated in newProperties(). |
static java.lang.String |
FIRE_NON_FINAL_RESULTS
If set to false the used search-manager all registered result listeners will be notified only for
final results. |
static java.lang.String |
PROP_RESULT_LISTENERS
|
static java.lang.String |
PROP_SEARCH_MANAGER
The sphinx property name for the name of the search manager to use |
| Constructor Summary | |
|---|---|
AbstractDecoder()
|
|
AbstractDecoder(SearchManager searchManager,
boolean fireNonFinalResults,
boolean autoAllocate,
java.util.List<? extends Configurable> resultListeners)
|
|
| Method Summary | |
|---|---|
void |
addResultListener(ResultListener resultListener)
Adds a result listener to this recognizer. |
void |
allocate()
Allocate resources necessary for decoding |
void |
deallocate()
Deallocate resources |
abstract 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. |
void |
removeResultListener(ResultListener resultListener)
Removes a previously added result listener. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@S4Component(type=SearchManager.class) public static final java.lang.String PROP_SEARCH_MANAGER
@S4ComponentList(type=ResultListener.class) public static final java.lang.String PROP_RESULT_LISTENERS
@S4Boolean(defaultValue=false) public static final java.lang.String AUTO_ALLOCATE
newProperties().
@S4Boolean(defaultValue=false) public static final java.lang.String FIRE_NON_FINAL_RESULTS
false the used search-manager all registered result listeners will be notified only for
final results. Per default non-final results don't trigger notification, because in most application the
utterance final result will be sufficient.
| Constructor Detail |
|---|
public AbstractDecoder()
public AbstractDecoder(SearchManager searchManager,
boolean fireNonFinalResults,
boolean autoAllocate,
java.util.List<? extends Configurable> resultListeners)
searchManager - fireNonFinalResults - autoAllocate - resultListeners - | Method Detail |
|---|
public abstract Result decode(java.lang.String referenceText)
referenceText - the reference text (or null)
public void newProperties(PropertySheet ps)
throws PropertyException
Configurable
newProperties in interface Configurableps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.public void allocate()
public void deallocate()
public void addResultListener(ResultListener resultListener)
addResultListener in interface ResultProducerresultListener - the listener to addpublic void removeResultListener(ResultListener resultListener)
removeResultListener in interface ResultProducerresultListener - the listener to removepublic 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 | ||||||||