public class ParserEventStream extends AbstractParserEventStream
| Modifier and Type | Field and Description |
|---|---|
protected AttachContextGenerator |
attachContextGenerator |
protected BuildContextGenerator |
buildContextGenerator |
protected CheckContextGenerator |
checkContextGenerator |
dict, etype, fixPossesives, punctSet, rules| Constructor and Description |
|---|
ParserEventStream(ObjectStream<Parse> d,
HeadRules rules,
ParserEventTypeEnum etype) |
ParserEventStream(ObjectStream<Parse> d,
HeadRules rules,
ParserEventTypeEnum etype,
Dictionary dict) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParseEvents(List<Event> parseEvents,
Parse[] chunks)
Produces all events for the specified sentence chunks
and adds them to the specified list.
|
void |
init() |
protected boolean |
lastChild(Parse child,
Parse parent)
Returns true if the specified child is the last child of the specified parent.
|
static void |
main(String[] args) |
createEvents, getInitialChunkshasNext, nextremoveprotected AttachContextGenerator attachContextGenerator
protected BuildContextGenerator buildContextGenerator
protected CheckContextGenerator checkContextGenerator
public ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)
public ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)
public void init()
init in class AbstractParserEventStreamprotected boolean lastChild(Parse child, Parse parent)
AbstractParserEventStreamlastChild in class AbstractParserEventStreamchild - The child parse.parent - The parent parse.protected void addParseEvents(List<Event> parseEvents, Parse[] chunks)
AbstractParserEventStreamaddParseEvents in class AbstractParserEventStreamparseEvents - A list of events to be added to.chunks - Pre-chunked constituents of a sentence.public static void main(String[] args) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.