Class BuildContextGenerator

Namespace
NOpenNLP.Tools.Parser.Chunking
Assembly
NOpenNLP.Tools.dll

Class to generator predictive contexts for deciding how constituents should be combined together.

public class BuildContextGenerator : AbstractContextGenerator
Inheritance
BuildContextGenerator
Inherited Members

Constructors

BuildContextGenerator()

Creates a new context generator for making decisions about combining constitients togehter.

public BuildContextGenerator()

BuildContextGenerator(Dictionary)

public BuildContextGenerator(Dictionary dict)

Parameters

dict Dictionary

Methods

GetContext(Parse[], int)

Returns the predictive context used to determine how constituent at the specified index should be combined with other contisuents.

public virtual string[] GetContext(Parse[] constituents, int index)

Parameters

constituents Parse[]

The constituents which have yet to be combined into new constituents.

index int

The index of the constituent whcihi is being considered.

Returns

string[]

the context for building constituents at the specified index.