Interface IChunkerContextGenerator

Namespace
NOpenNLP.Tools.Chunker
Assembly
NOpenNLP.Tools.dll

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

i int

The index of the token in the specified toks array for which the context should be constructed.

toks string[]

The tokens of the sentence. The ToString methods of these objects should return the token text.

tags string[]

The POS tags for the specified tokens.

preds string[]

The previous decisions made in the taging of this sequence. Only indices less than i will be examined.

Returns

string[]

An array of predictive contexts on which a model basis its decisions.