Package | Description |
---|---|
opennlp.tools.parser |
Package containing common code for performing full syntactic parsing.
|
opennlp.tools.parser.chunking |
Package containing code for performing full syntactic parsing using shift/reduce-style decisions.
|
opennlp.tools.parser.lang.en | |
opennlp.tools.parser.treeinsert |
Package containing experimental code for performing full syntactic
parsing using attachment decisions.
|
Modifier and Type | Field and Description |
---|---|
protected HeadRules |
AbstractBottomUpParser.headRules
The head rules for the parser.
|
protected HeadRules |
AbstractParserEventStream.rules |
Modifier and Type | Method and Description |
---|---|
void |
Parse.add(Parse daughter,
HeadRules rules) |
Parse |
Parse.adjoin(Parse sister,
HeadRules rules)
Sister adjoins this node's last child and the specified sister node and returns their
new parent node.
|
Parse |
Parse.adjoinRoot(Parse node,
HeadRules rules,
int parseIndex) |
static Dictionary |
AbstractBottomUpParser.buildDictionary(ObjectStream<Parse> data,
HeadRules rules,
int cutoff)
Creates a n-gram dictionary from the specified data stream using the specified head rule and specified cut-off.
|
static Dictionary |
AbstractBottomUpParser.buildDictionary(ObjectStream<Parse> data,
HeadRules rules,
TrainingParameters params)
Creates a n-gram dictionary from the specified data stream using the specified head rule and specified cut-off.
|
void |
Parse.updateHeads(HeadRules rules)
Computes the head parses for this parse and its sub-parses and stores this information
in the parse data structure.
|
Constructor and Description |
---|
AbstractBottomUpParser(POSTagger tagger,
Chunker chunker,
HeadRules headRules,
int beamSize,
double advancePercentage) |
AbstractParserEventStream(ObjectStream<Parse> d,
HeadRules rules,
ParserEventTypeEnum etype) |
AbstractParserEventStream(ObjectStream<Parse> d,
HeadRules rules,
ParserEventTypeEnum etype,
Dictionary dict) |
Modifier and Type | Method and Description |
---|---|
static ParserModel |
Parser.train(String languageCode,
ObjectStream<Parse> parseSamples,
HeadRules rules,
int iterations,
int cut)
Deprecated.
use
Parser.train(String, ObjectStream, HeadRules, TrainingParameters)
instead and pass in a TrainingParameters object. |
static ParserModel |
Parser.train(String languageCode,
ObjectStream<Parse> parseSamples,
HeadRules rules,
TrainingParameters mlParams) |
Constructor and Description |
---|
Parser(MaxentModel buildModel,
MaxentModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules)
Deprecated.
|
Parser(MaxentModel buildModel,
MaxentModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules,
int beamSize,
double advancePercentage)
Deprecated.
|
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 | Class and Description |
---|---|
class |
HeadRules
Class for storing the English head rules associated with parsing.
|
Modifier and Type | Method and Description |
---|---|
static ParserModel |
Parser.train(String languageCode,
ObjectStream<Parse> parseSamples,
HeadRules rules,
int iterations,
int cut) |
static ParserModel |
Parser.train(String languageCode,
ObjectStream<Parse> parseSamples,
HeadRules rules,
TrainingParameters mlParams) |
Constructor and Description |
---|
Parser(AbstractModel buildModel,
AbstractModel attachModel,
AbstractModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules)
Deprecated.
|
Parser(AbstractModel buildModel,
AbstractModel attachModel,
AbstractModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules,
int beamSize,
double advancePercentage)
Deprecated.
|
ParserEventStream(ObjectStream<Parse> d,
HeadRules rules,
ParserEventTypeEnum etype) |
ParserEventStream(ObjectStream<Parse> d,
HeadRules rules,
ParserEventTypeEnum etype,
Dictionary dict) |
Copyright © 2016 The Apache Software Foundation. All rights reserved.