Class CheckContextGenerator

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

Class for generating predictive context for deciding when a constituent is complete.

public class CheckContextGenerator : AbstractContextGenerator
Inheritance
CheckContextGenerator
Inherited Members

Constructors

CheckContextGenerator()

Creates a new context generator for generating predictive context for deciding when a constituent is complete.

public CheckContextGenerator()

Methods

GetContext(Parse[], string, int, int)

Returns predictive context for deciding whether the specified constituents between the specified start and end index can be combined to form a new constituent of the specified type.

public virtual string[] GetContext(Parse[] constituents, string type, int start, int end)

Parameters

constituents Parse[]

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

type string

The type of the new constituent proposed.

start int

The first constituent of the proposed constituent.

end int

The last constituent of the proposed constituent.

Returns

string[]

The predictive context for deciding whether a new constituent should be created.