done.inpro.system.completion
Class CompletionHypothesisListener
java.lang.Object
inpro.incremental.PushBuffer
inpro.incremental.IUModule
done.inpro.system.completion.CompletionHypothesisListener
- All Implemented Interfaces:
- edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable, AbstractFloorTracker.Listener
public class CompletionHypothesisListener
- extends IUModule
- implements AbstractFloorTracker.Listener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FONT
public static final java.awt.Font DEFAULT_FONT
label
private javax.swing.JLabel label
lastDisplayedString
private java.lang.String lastDisplayedString
lastQueryText
private java.lang.String lastQueryText
completeStrings
private java.util.List<java.lang.String> completeStrings
discardedStrings
private java.util.List<java.lang.String> discardedStrings
yesWords
private java.util.List<java.lang.String> yesWords
noWords
private java.util.List<java.lang.String> noWords
processedNoWords
private java.util.List<WordIU> processedNoWords
CompletionHypothesisListener
public CompletionHypothesisListener()
newProperties
public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
throws edu.cmu.sphinx.util.props.PropertyException
- Specified by:
newProperties
in interface edu.cmu.sphinx.util.props.Configurable
- Overrides:
newProperties
in class IUModule
- Throws:
edu.cmu.sphinx.util.props.PropertyException
leftBufferUpdate
protected void leftBufferUpdate(java.util.Collection<? extends IU> ius,
java.util.List<? extends EditMessage<? extends IU>> edits)
- Description copied from class:
IUModule
- the method that IU modules must implement
- Specified by:
leftBufferUpdate
in class IUModule
- Parameters:
ius
- list of IUs that make up the current hypothesisedits
- a list of edits since the last call
reset
public void reset()
- Specified by:
reset
in interface edu.cmu.sphinx.instrumentation.Resetable
- Overrides:
reset
in class PushBuffer
floor
public void floor(AbstractFloorTracker.Signal signal,
AbstractFloorTracker floorManager)
- Description copied from interface:
AbstractFloorTracker.Listener
- will be called when the floor state changes
- Specified by:
floor
in interface AbstractFloorTracker.Listener
- Parameters:
signal
- the signal describing the change in the floorfloorManager
- the floor manager itself. in this way a consumer can request e.g. to change timeouts