Class BuildContextGenerator
- Namespace
- NOpenNLP.Tools.Parser.Treeinsert
- Assembly
- NOpenNLP.Tools.dll
Creates the features or contexts for the building phase of parsing. This phase builds constituents from the left-most node of these constituents.
public class BuildContextGenerator : AbstractContextGenerator
- Inheritance
-
BuildContextGenerator
- Inherited Members
Methods
GetContext(Parse[], int)
Returns the contexts/features for the decision to build a new constituent for the specified parse at the specified index.
public virtual string[] GetContext(Parse[] constituents, int index)
Parameters
constituentsParse[]The constituents of the parse so far.
indexintThe index of the constituent where a build decision is being made.
Returns
- string[]
the contexts/features for the decision to build a new constituent.