public class ParserEventStream extends AbstractParserEventStream
Constructor and Description |
---|
ParserEventStream(ObjectStream<Parse> d,
HeadRules rules,
ParserEventTypeEnum etype) |
ParserEventStream(ObjectStream<Parse> d,
HeadRules rules,
ParserEventTypeEnum etype,
Dictionary dict)
Create an event stream based on the specified data stream of the specified type using
the specified head rules.
|
Modifier and Type | Method and Description |
---|---|
static Parse[] |
reduceChunks(Parse[] chunks,
int ci,
Parse parent) |
getInitialChunks
close, read, reset
public ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)
d
- A 1-parse-per-line Penn Treebank Style parse.rules
- The head rules.etype
- The type of events desired (tag, chunk, build, or check).dict
- A tri-gram dictionary to reduce feature generation.public ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)
Copyright © 2017 The Apache Software Foundation. All rights reserved.