inpro.incremental.deltifier
Class FixedLagDeltifier

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

public class FixedLagDeltifier
extends ASRWordDeltifier

fixed lag deltifier only passes along words that have not started with a given fixed lag


Field Summary
(package private)  int fixedLag
           
static java.lang.String PROP_FIXED_LAG
           
 
Fields inherited from class inpro.incremental.deltifier.ASRWordDeltifier
currentFrame, currentOffset, recoFinal, startTime, wordEdits, wordIUs
 
Constructor Summary
FixedLagDeltifier()
           
 
Method Summary
protected  java.util.List<edu.cmu.sphinx.decoder.search.Token> getTokens(edu.cmu.sphinx.decoder.search.Token token)
          adds a bunch of assertions to the output of ResultUtil.getTokenList(Token,boolean,boolean)
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
          this base implementation does not accept any parameters
 java.lang.String toString()
           
 
Methods inherited from class inpro.incremental.deltifier.ASRWordDeltifier
deltify, deltify, getCurrentFrame, getCurrentTime, getWordEdits, getWordIUs, reset, setCollectTime, setOffset, signalOccurred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_FIXED_LAG

@S4Integer(defaultValue=0)
public static final java.lang.String PROP_FIXED_LAG
See Also:
Constant Field Values

fixedLag

int fixedLag
Constructor Detail

FixedLagDeltifier

public FixedLagDeltifier()
Method Detail

newProperties

public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
                   throws edu.cmu.sphinx.util.props.PropertyException
Description copied from class: ASRWordDeltifier
this base implementation does not accept any parameters

Specified by:
newProperties in interface edu.cmu.sphinx.util.props.Configurable
Overrides:
newProperties in class ASRWordDeltifier
Throws:
edu.cmu.sphinx.util.props.PropertyException

getTokens

protected java.util.List<edu.cmu.sphinx.decoder.search.Token> getTokens(edu.cmu.sphinx.decoder.search.Token token)
Description copied from class: ASRWordDeltifier
adds a bunch of assertions to the output of ResultUtil.getTokenList(Token,boolean,boolean)

Overrides:
getTokens in class ASRWordDeltifier
Parameters:
token - the token to start the backwards trace from
Returns:
a list of tokens, word tokens precede their corresponding segment tokens TODO?!! currently, no provisions are taken for SILs to be preceded by a word! -> it would be really annoying to insert such words in the token list, we hence handle silence-insertion at a later step in the process -> should we do the opposite and strip silence words, so that we don't have to support them if they ever occur in the token list?

toString

public java.lang.String toString()
Overrides:
toString in class ASRWordDeltifier