9 #ifndef META_SVM_WRAPPER_H_
10 #define META_SVM_WRAPPER_H_
12 #include <unordered_map>
57 svm_wrapper(std::shared_ptr<index::forward_index> idx,
58 const std::string& svm_path,
kernel kernel_opt = kernel::None);
66 class_label
classify(doc_id d_id)
override;
72 void train(
const std::vector<doc_id>& docs)
override;
87 void reset()
override;
92 const static std::string
id;
100 const static std::unordered_map<kernel, std::string, std::hash<int>>
115 std::unique_ptr<classifier>
117 std::shared_ptr<index::forward_index>);