Class BuildContextGenerator


  • public class BuildContextGenerator
    extends AbstractContextGenerator
    Creates the features or contexts for the building phase of parsing. This phase builds constituents from the left-most node of these constituents.
    See Also:
    AbstractContextGenerator
    • Constructor Detail

      • BuildContextGenerator

        public BuildContextGenerator()
        Instantiates a BuildContextGenerator for making decisions.
    • Method Detail

      • getContext

        public String[] getContext​(Parse[] constituents,
                                   int index)
        Finds the contexts/features for the decision to build a new constituent for the specified parse at the specified index.
        Parameters:
        constituents - The constituents of the parse so far.
        index - The index of the constituent where a build decision is being made.
        Returns:
        The contexts/features for the decision to build a new constituent.