Class AttachContextGenerator

Namespace
NOpenNLP.Tools.Parser.Treeinsert
Assembly
NOpenNLP.Tools.dll
public class AttachContextGenerator : AbstractContextGenerator
Inheritance
AttachContextGenerator
Inherited Members

Constructors

AttachContextGenerator(ISet<string>)

public AttachContextGenerator(ISet<string> punctSet)

Parameters

punctSet ISet<string>

Methods

GetContext(Parse[], int, IList<Parse>, int)

public virtual string[] GetContext(Parse[] constituents, int index, IList<Parse> rightFrontier, int rfi)

Parameters

constituents Parse[]

The constituents as they have been constructed so far.

index int

The constituent index of the node being attached.

rightFrontier IList<Parse>

The nodes which have been not attach to so far.

rfi int

The index into the right frontier.

Returns

string[]

A set of contextual features about this attachment.