Tanl Linguistic Pipeline

Parser::SvmParser Struct Reference
[Dependency Parser]

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

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

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


Member Function Documentation

Sentence * Parser::SvmParser::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(), Parser::ParseState::prune(), Parser::State::splitFeature, splitGroup, splits, 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.