DeSR Dependency Parser

Parser::SvmParser Struct Reference

Parser using an SVM classifier, provided by libsvm. More...

Inheritance diagram for Parser::SvmParser:

Inheritance graph
Collaboration diagram for Parser::SvmParser:

Collaboration graph

List of all members.

Public Member Functions

 SvmParser (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 splits
 IDs of split groups.
vector< string > splitNames
 names of all splits
unordered_map< char, char > splitGroup
 renumbering of grouped splits
WordIndex predIndex
WordIndex classIndex
vector< string > classLabels
vector< svm_model * > model


Detailed Description

Parser using an SVM classifier, provided by libsvm.

Definition at line 72 of file SvmParser.cpp.


Member Function Documentation

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

Parse the given Sentence sentence.

Returns:
a newly allocated
See also:
Sentence.

Implements Parser::Parser.

Definition at line 503 of file SvmParser.cpp.

References splitGroup, and splits.


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.