Tanl Linguistic Pipeline

Parser::MlpParser Struct Reference
[Dependency Parser]

A Parser using a Multi Layer Perceptron classifier. More...

Inheritance diagram for Parser::MlpParser:
Parser::Parser Tanl::IPipe< Sentence *, Sentence * > Tanl::RefCountable

List of all members.

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.
Sentenceparse (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

Detailed Description

A Parser using a Multi Layer Perceptron classifier.


Member Function Documentation

Sentence * Parser::MlpParser::parse ( Sentence sentence  )  [virtual]
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.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.