Tanl Linguistic Pipeline |
Parser using two SVM classifiers, provided by libsvm, one to predict the action, one to predict the label. More...
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 |
Parser using two SVM classifiers, provided by libsvm, one to predict the action, one to predict the label.
Parse the given Sentence sentence
.
Reimplemented from Parser::Parser.
References Parser::ParseState::hasNext(), Parser::ParseState::next(), Parser::Parser::preprocess(), and Parser::ParseState::transition().