Interface IChunkerContextGenerator
Interface for the context generator used in syntactic chunking.
public interface IChunkerContextGenerator : IBeamSearchContextGenerator<TokenTag>
- Inherited Members
Methods
GetContext(int, string[], string[], string[])
Returns the contexts for chunking of the specified index.
string[] GetContext(int i, string[] toks, string[] tags, string[] preds)
Parameters
iintThe index of the token in the specified toks array for which the context should be constructed.
toksstring[]The tokens of the sentence. The
ToStringmethods of these objects should return the token text.tagsstring[]The POS tags for the specified tokens.
predsstring[]The previous decisions made in the taging of this sequence. Only indices less than
iwill be examined.
Returns
- string[]
An array of predictive contexts on which a model basis its decisions.