public abstract class AbstractParserEventStream extends opennlp.tools.util.AbstractEventStream<Parse>
| Modifier and Type | Field and Description |
|---|---|
protected opennlp.tools.dictionary.Dictionary |
dict |
protected opennlp.tools.parser.ParserEventTypeEnum |
etype
The type of events being generated by this event stream.
|
protected boolean |
fixPossesives |
protected Set<String> |
punctSet |
protected HeadRules |
rules |
| Constructor and Description |
|---|
AbstractParserEventStream(opennlp.tools.util.ObjectStream<Parse> dataStream,
HeadRules rules,
opennlp.tools.parser.ParserEventTypeEnum etype) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addParseEvents(List<opennlp.tools.ml.model.Event> newEvents,
Parse[] chunks)
Produces all events for the specified sentence chunks and adds them to the
specified list.
|
protected Iterator<opennlp.tools.ml.model.Event> |
createEvents(Parse sample) |
static Parse[] |
getInitialChunks(Parse p) |
protected void |
init() |
protected boolean |
lastChild(Parse child,
Parse parent)
Returns true if the specified child is the last child of the specified
parent.
|
protected HeadRules rules
protected opennlp.tools.parser.ParserEventTypeEnum etype
protected boolean fixPossesives
protected opennlp.tools.dictionary.Dictionary dict
protected Iterator<opennlp.tools.ml.model.Event> createEvents(Parse sample)
createEvents in class opennlp.tools.util.AbstractEventStream<Parse>protected void init()
protected abstract void addParseEvents(List<opennlp.tools.ml.model.Event> newEvents, Parse[] chunks)
newEvents - A list of events to be added to.chunks - Pre-chunked constituents of a sentence.protected boolean lastChild(Parse child, Parse parent)
child - The child parse.parent - The parent parse.Copyright © 2017 IXA pipes. All rights reserved.