Class CheckContextGenerator
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
constituentsParse[]The constituents which have yet to be combined into new constituents.
typestringThe type of the new constituent proposed.
startintThe first constituent of the proposed constituent.
endintThe last constituent of the proposed constituent.
Returns
- string[]
The predictive context for deciding whether a new constituent should be created.