DeSR Dependency Parser

Parser::MultiSvmParser Struct Reference

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

Inheritance diagram for Parser::MultiSvmParser:

Inheritance graph
Collaboration diagram for Parser::MultiSvmParser:

Collaboration graph

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.
Sentence * parse (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.

Definition at line 59 of file MultiSvmParser.cpp.


Member Function Documentation

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

Parse the given Sentence sentence.

Returns:
a newly allocated
See also:
Sentence.

Implements Parser::Parser.

Definition at line 309 of file MultiSvmParser.cpp.


The documentation for this struct was generated from the following file:
 
Copyright © 2005-2007 G. Attardi. Generated on 13 Aug 2009 by doxygen 1.5.7.1.