inpro.incremental.evaluation
Class WordLagTracker
java.lang.Object
inpro.incremental.PushBuffer
inpro.incremental.evaluation.BasicEvaluator
inpro.incremental.evaluation.WordLagTracker
- All Implemented Interfaces:
- edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable
public class WordLagTracker
- extends BasicEvaluator
a listener that outputs all WordIUs' lags (relative to the word's end);
this may become an alternative to use INTELIDA to analyze runtime performance
(or could even be used online to adapt ASR or SDS properties)
- Author:
- timo
Method Summary |
protected void |
evaluate()
|
void |
hypChange(java.util.Collection<? extends IU> ius,
java.util.List<? extends EditMessage<? extends IU>> edits)
this should receive a list of current IUs and
a list of edit messages since the last call to hypChange |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wordLagsForAllWords
static final java.util.Map<WordIU,java.lang.Long> wordLagsForAllWords
WordLagTracker
public WordLagTracker()
hypChange
public void hypChange(java.util.Collection<? extends IU> ius,
java.util.List<? extends EditMessage<? extends IU>> edits)
- Description copied from class:
PushBuffer
- this should receive a list of current IUs and
a list of edit messages since the last call to hypChange
- Overrides:
hypChange
in class BasicEvaluator
- Parameters:
ius
- while this is a (plain) collection, the collection's iterator()
method must ensure a sensible ordering of the returned elements.
For now we have only used Lists (which are ordered),
but a Tree of IUs should also be possible and this should gracefully
work together with processors that expect listsedits
- a list of edits since the last call to hypChange
evaluate
protected void evaluate()
- Specified by:
evaluate
in class BasicEvaluator