Class ParserEventStream

    • Constructor Detail

      • ParserEventStream

        public ParserEventStream​(ObjectStream<Parse> d,
                                 HeadRules rules,
                                 ParserEventTypeEnum etype,
                                 Dictionary dict)
        Create an event stream based on the specified data stream of the specified type using the specified head rules.
        Parameters:
        d - A 1-parse-per-line Penn Treebank Style parse.
        rules - The head rules.
        etype - The type of events desired (tag, chunk, build, or check).
        dict - A tri-gram dictionary to reduce feature generation.
    • Method Detail

      • reduceChunks

        public static Parse[] reduceChunks​(Parse[] chunks,
                                           int ci,
                                           Parse parent)