FreeLing
4.0
|
Class svm implements a bianry SVM classifier. More...
#include <svm.h>
Public Member Functions | |
svm (const std::wstring &, const std::wstring &) | |
~svm () | |
void | classify (const example &, double[]) const |
classify given example, returning probabilities | |
int | get_nlabels () const |
get number of classes on the model | |
Private Attributes | |
svm_model * | model |
int * | class_code |
Static Private Attributes | |
static boost::mutex | svm_sem |
Class svm implements a bianry SVM classifier.
freeling::svm::svm | ( | const std::wstring & | , |
const std::wstring & | |||
) |
void freeling::svm::classify | ( | const example & | , |
double | [] | ||
) | const [virtual] |
classify given example, returning probabilities
Implements freeling::classifier.
int freeling::svm::get_nlabels | ( | ) | const [virtual] |
get number of classes on the model
Reimplemented from freeling::classifier.
int* freeling::svm::class_code [private] |
svm_model* freeling::svm::model [private] |
boost::mutex freeling::svm::svm_sem [static, private] |