| Tanl Linguistic Pipeline |
A Parser using a Multi Layer Perceptron classifier. More...
Public Member Functions | |
| MlpParser (char const *modelFile, int iter) | |
| 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 | |
| MlpModel | model |
| int | iter |
| number of epochs | |
A Parser using a Multi Layer Perceptron classifier.
Parse the given Sentence sentence.
Reimplemented from Parser::Parser.
References Parser::State::action, Tanl::Classifier::Classifier::BestOutcome(), Parser::MlpModel::estimate(), Tanl::Language::gendAgree(), Parser::TrainState::hasNext(), Parser::ParseState::hasNext(), Parser::State::input, Parser::ParseState::lprob, Tanl::Token::morpho, Tanl::Language::morphoLeft(), Tanl::Language::morphoRight(), Parser::TrainState::next(), Parser::ParseState::next(), Tanl::Language::numbAgree(), Tanl::Classifier::Classifier::NumOutcomes(), Tanl::Classifier::Classifier::OutcomeName(), Parser::Parser::preprocess(), Parser::State::previous, Tanl::TreeToken::printLeaves(), Parser::ParseState::prune(), Parser::State::stack, Parser::State::transition(), Parser::ParseState::transition(), and Parser::Parser::verbose.
| void Parser::MlpParser::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.