Class ParserEventStream
java.lang.Object
opennlp.tools.util.AbstractEventStream<opennlp.tools.parser.Parse>
opennlp.tools.parser.AbstractParserEventStream
opennlp.tools.parser.treeinsert.ParserEventStream
- All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Event>
Wrapper class for one of four
built-attach parser event streams.
The particular event type is specified at construction.-
Constructor Summary
ConstructorsConstructorDescriptionParserEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.parser.Parse> d, opennlp.tools.parser.HeadRules rules, opennlp.tools.parser.ParserEventTypeEnum etype) ParserEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.parser.Parse> d, opennlp.tools.parser.HeadRules rules, opennlp.tools.parser.ParserEventTypeEnum etype, Dictionary dict) -
Method Summary
Methods inherited from class AbstractParserEventStream
getInitialChunksMethods inherited from class AbstractEventStream
close, read, reset
-
Constructor Details
-
ParserEventStream
public ParserEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.parser.Parse> d, opennlp.tools.parser.HeadRules rules, opennlp.tools.parser.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
public ParserEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.parser.Parse> d, opennlp.tools.parser.HeadRules rules, opennlp.tools.parser.ParserEventTypeEnum etype) - Parameters:
d- A 1-parse-per-line Penn Treebank Style parse.rules- Thehead rulesto use.etype- Thetypeof events desired.- See Also:
-
-
Method Details
-
init
public void init()
-