| Tanl Linguistic Pipeline |
Parser using an SVM classifier, provided by libsvm. More...
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 |
Parser using an SVM classifier, provided by libsvm.
Parse the given Sentence 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().