Package opennlp.tools.parser.treeinsert
Class ParserEventStream
- java.lang.Object
-
- opennlp.tools.util.AbstractEventStream<Parse>
-
- opennlp.tools.parser.AbstractParserEventStream
-
- opennlp.tools.parser.treeinsert.ParserEventStream
-
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<Event>
public class ParserEventStream extends AbstractParserEventStream
Wrapper class for one of fourbuilt-attach parser
event streams. The particularevent type
is specified at construction.
-
-
Constructor Summary
Constructors Constructor Description ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)
ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
-
Methods inherited from class opennlp.tools.parser.AbstractParserEventStream
getInitialChunks
-
Methods inherited from class opennlp.tools.util.AbstractEventStream
close, read, reset
-
-
-
-
Constructor Detail
-
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 rules
to use.etype
- Thetype
of events desired.dict
- A tri-gramDictionary
to reduce feature generation.- See Also:
ParserEventTypeEnum
-
ParserEventStream
public ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)
- Parameters:
d
- A 1-parse-per-line Penn Treebank Style parse.rules
- Thehead rules
to use.etype
- Thetype
of events desired.- See Also:
ParserEventTypeEnum
-
-