Class BuildContextGenerator
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
dictDictionary
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
constituentsParse[]The constituents which have yet to be combined into new constituents.
indexintThe index of the constituent whcihi is being considered.
Returns
- string[]
the context for building constituents at the specified index.