Tanl Linguistic Pipeline

Parser::MultiSvmParser Struct Reference
[Dependency Parser]

Parser using two SVM classifiers, provided by libsvm, one to predict the action, one to predict the label. More...

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

List of all members.

Public Member Functions

 MultiSvmParser (char const *modelFile)
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.

Public Attributes

WordIndex classIndex
vector< string > classLabels
vector< struct svm_model * > model

Detailed Description

Parser using two SVM classifiers, provided by libsvm, one to predict the action, one to predict the label.


Member Function Documentation

Sentence * Parser::MultiSvmParser::parse ( Sentence sentence  )  [virtual]

Parse the given Sentence sentence.

Returns:
a newly allocated
See also:
Sentence.

Reimplemented from Parser::Parser.

References Parser::ParseState::hasNext(), Parser::ParseState::next(), Parser::Parser::preprocess(), and Parser::ParseState::transition().


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.