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, getInitialChunks
hasNext, next
remove
protected 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 AbstractParserEventStream
protected boolean lastChild(Parse child, Parse parent)
AbstractParserEventStream
lastChild
in class AbstractParserEventStream
child
- The child parse.parent
- The parent parse.protected void addParseEvents(List<Event> parseEvents, Parse[] chunks)
AbstractParserEventStream
addParseEvents
in class AbstractParserEventStream
parseEvents
- A list of events to be added to.chunks
- Pre-chunked constituents of a sentence.public static void main(String[] args) throws IOException, InvalidFormatException
IOException
InvalidFormatException
Copyright © 2017 The Apache Software Foundation. All rights reserved.