opennlp.tools.util
Interface BeamSearchContextGenerator

All Known Subinterfaces:
ChunkerContextGenerator, NameContextGenerator, POSContextGenerator
All Known Implementing Classes:
ChunkContextGenerator, DefaultChunkerContextGenerator, DefaultNameContextGenerator, DefaultPOSContextGenerator

public interface BeamSearchContextGenerator

Interface for context generators used with a sequence beam search.


Method Summary
 java.lang.String[] getContext(int index, java.lang.Object[] sequence, java.lang.String[] priorDecisions, java.lang.Object[] additionalContext)
          Returns the context for the specified position in the specified sequence (list).
 

Method Detail

getContext

java.lang.String[] getContext(int index,
                              java.lang.Object[] sequence,
                              java.lang.String[] priorDecisions,
                              java.lang.Object[] additionalContext)
Returns the context for the specified position in the specified sequence (list).

Parameters:
index - The index of the sequence.
sequence - The sequence of items over which the beam search is performed.
priorDecisions - The sequence of decisions made prior to the context for which this decision is being made.
additionalContext - Any addition context specific to a class implementing this interface.
Returns:
the context for the specified position in the specified sequence.


Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.