inpro.incremental.deltifier
Class FixedLagDeltifier
java.lang.Object
inpro.incremental.deltifier.ASRWordDeltifier
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PROP_FIXED_LAG
@S4Integer(defaultValue=0)
public static final java.lang.String PROP_FIXED_LAG
- See Also:
- Constant Field Values
fixedLag
int fixedLag
FixedLagDeltifier
public FixedLagDeltifier()
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