inpro.incremental.deltifier
Class NonIncrementalDeltifier

java.lang.Object
  extended by inpro.incremental.deltifier.ASRWordDeltifier
      extended by inpro.incremental.deltifier.NonIncrementalDeltifier
All Implemented Interfaces:
edu.cmu.sphinx.frontend.SignalListener, edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable, ASRResultKeeper

public class NonIncrementalDeltifier
extends ASRWordDeltifier

A deltifier which does not output any intermediate hypotheses. Output IUs are only provided when the ASR result is final. Thus, this deltifier effectively "switches off" incrementality.

Author:
timo

Field Summary
 
Fields inherited from class inpro.incremental.deltifier.ASRWordDeltifier
currentFrame, currentOffset, recoFinal, startTime, wordEdits, wordIUs
 
Constructor Summary
NonIncrementalDeltifier()
           
 
Method Summary
 java.util.List<EditMessage<WordIU>> getWordEdits()
          only if recognition is final, output the results of the underlying deltifier; otherwise return an empty list; which will then contain a list of all ADD edits for the words in the final result.
 java.util.List<WordIU> getWordIUs()
          only if recognition is final, output the results of the underlying deltifier; otherwise return an empty list which will then contain the words in the final result.
 
Methods inherited from class inpro.incremental.deltifier.ASRWordDeltifier
deltify, deltify, getCurrentFrame, getCurrentTime, getTokens, newProperties, reset, setCollectTime, setOffset, signalOccurred, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonIncrementalDeltifier

public NonIncrementalDeltifier()
Method Detail

getWordEdits

public java.util.List<EditMessage<WordIU>> getWordEdits()
only if recognition is final, output the results of the underlying deltifier; otherwise return an empty list; which will then contain a list of all ADD edits for the words in the final result. COMMIT edits are automatically output by CurrentASRHypothesis

Specified by:
getWordEdits in interface ASRResultKeeper
Overrides:
getWordEdits in class ASRWordDeltifier

getWordIUs

public java.util.List<WordIU> getWordIUs()
only if recognition is final, output the results of the underlying deltifier; otherwise return an empty list which will then contain the words in the final result.

Specified by:
getWordIUs in interface ASRResultKeeper
Overrides:
getWordIUs in class ASRWordDeltifier