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
Methods
GetContext(Parse[], int, IList<Parse>, int)
public virtual string[] GetContext(Parse[] constituents, int index, IList<Parse> rightFrontier, int rfi)
Parameters
constituentsParse[]The constituents as they have been constructed so far.
indexintThe constituent index of the node being attached.
rightFrontierIList<Parse>The nodes which have been not attach to so far.
rfiintThe index into the right frontier.
Returns
- string[]
A set of contextual features about this attachment.