| DeSR Dependency Parser |


Public Member Functions | |
| ApParser (char const *modelFile, int iter=0) | |
| void | train (SentenceReader *sentenceReader, char const *modelFile) |
Train statistical model using sentences obtained through a sentenceReader, and save the generated model to modelFile. | |
| Sentence * | parse (Sentence *sentence) |
Parse the given Sentence sentence. | |
| void | revise (SentenceReader *sentenceReader, char const *actionFile=0) |
| Produce a revision of a document parses, using either a model or an action file. | |
Public Attributes | |
| APSV | ap |
| model | |
| int | iter |
| number of iterations | |
Parser class using an Averaged Perceptron classifier.
Definition at line 60 of file ApParser.cpp.
| Sentence * Parser::ApParser::parse | ( | Sentence * | sentence | ) | [virtual] |
Parse the given Sentence sentence.
Implements Parser::Parser.
Definition at line 224 of file ApParser.cpp.
References ap, Parser::State::getSentence(), Parser::ParseState::hasNext(), Parser::ParseState::next(), and Parser::ParseState::transition().
| void Parser::ApParser::revise | ( | SentenceReader * | sentenceReader, | |
| char const * | actionFile = 0 | |||
| ) | [virtual] |
Produce a revision of a document parses, using either a model or an action file.
If an actionFile is provided, it must contain a list of actions, one per line, to apply to the parse trees, otherwise the actions to perform revisions are determined using the model.
Reimplemented from Parser::Parser.
Definition at line 244 of file ApParser.cpp.
References ap.