public class ParserEventStream extends opennlp.tools.util.AbstractEventStream<Parse>
| Constructor and Description |
|---|
ParserEventStream(opennlp.tools.util.ObjectStream<Parse> d,
HeadRules rules,
opennlp.tools.parser.ParserEventTypeEnum etype) |
ParserEventStream(opennlp.tools.util.ObjectStream<Parse> samples,
HeadRules rules,
opennlp.tools.parser.ParserEventTypeEnum etype,
ParserFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected Iterator<opennlp.tools.ml.model.Event> |
createEvents(Parse sample) |
protected boolean |
firstChild(Parse child,
Parse parent)
Returns true if the specified child is the first child of the specified
parent.
|
static Parse[] |
getInitialChunks(Parse p) |
protected boolean |
lastChild(Parse child,
Parse parent)
Returns true if the specified child is the last child of the specified parent.
|
static Parse[] |
reduceChunks(Parse[] chunks,
int ci,
Parse parent) |
public ParserEventStream(opennlp.tools.util.ObjectStream<Parse> samples, HeadRules rules, opennlp.tools.parser.ParserEventTypeEnum etype, ParserFactory factory)
protected Iterator<opennlp.tools.ml.model.Event> createEvents(Parse sample)
createEvents in class opennlp.tools.util.AbstractEventStream<Parse>protected boolean firstChild(Parse child, Parse parent)
child - The child parse.parent - The parent parse.protected boolean lastChild(Parse child, Parse parent)
child - The child parse.parent - The parent parse.Copyright © 2016 IXA pipes. All rights reserved.