edu.stanford.nlp.sequences
Interface SequenceListener

All Known Implementing Classes:
CRFCliqueTree, EntityCachingAbstractSequencePrior, FactoredSequenceListener

public interface SequenceListener

A class capable of listening to changes about a sequence, represented as an array of type int.

Author:
grenager

Method Summary
 void setInitialSequence(int[] sequence)
          Informs this sequence listener that the value of the whole sequence is initialized to sequence
 void updateSequenceElement(int[] sequence, int pos, int oldVal)
          Informs this sequence listener that the value of the element at position pos has changed.
 

Method Detail

updateSequenceElement

void updateSequenceElement(int[] sequence,
                           int pos,
                           int oldVal)
Informs this sequence listener that the value of the element at position pos has changed. This allows this sequence model to update its internal model if desired.

Parameters:
sequence -
pos -
oldVal -

setInitialSequence

void setInitialSequence(int[] sequence)
Informs this sequence listener that the value of the whole sequence is initialized to sequence

Parameters:
sequence -


Stanford NLP Group