Package opennlp.tools.parser.chunking
Class ParserEventStream
java.lang.Object
opennlp.tools.util.AbstractEventStream<Parse>
opennlp.tools.parser.AbstractParserEventStream
opennlp.tools.parser.chunking.ParserEventStream
- All Implemented Interfaces:
 AutoCloseable,ObjectStream<Event>
Wrapper class for one of four 
shift-reduce parser event streams.
 The particular event type is specified at construction.- 
Constructor Summary
ConstructorsConstructorDescriptionParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype) ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic Parse[]reduceChunks(Parse[] chunks, int ci, Parse parent) Methods inherited from class opennlp.tools.parser.AbstractParserEventStream
getInitialChunksMethods inherited from class opennlp.tools.util.AbstractEventStream
close, read, reset 
- 
Constructor Details
- 
ParserEventStream
public ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict) - Parameters:
 d- A 1-parse-per-line Penn Treebank Style parse.rules- Thehead rulesto use.etype- Thetypeof events desired.dict- A tri-gramDictionaryto reduce feature generation.- See Also:
 
 - 
ParserEventStream
- Parameters:
 d- A 1-parse-per-line Penn Treebank Style parse.rules- Thehead rulesto use.etype- Thetypeof events desired.- See Also:
 
 
 - 
 - 
Method Details
- 
reduceChunks
 
 -