Class AttachContextGenerator

    • Constructor Detail

      • AttachContextGenerator

        public AttachContextGenerator​(Set<String> punctSet)
        Instantiates an AttachContextGenerator for making decisions about attachments.
    • Method Detail

      • getContext

        public String[] getContext​(Parse[] constituents,
                                   int index,
                                   List<Parse> rightFrontier,
                                   int rfi)
        Finds the predictive contextual features about an attachment.
        Parameters:
        constituents - The constituents as they have been constructed so far.
        index - The constituent index of the node being attached.
        rightFrontier - The nodes which have been not attach to so far.
        Returns:
        A set of contextual features about this attachment.