#include <string_feature_factory.hpp>
Definition at line 31 of file string_feature_factory.hpp.
jubatus::core::fv_converter::string_feature_factory::string_feature_factory |
( |
| ) |
|
|
inline |
jubatus::core::fv_converter::string_feature_factory::string_feature_factory |
( |
const create_function & |
ext | ) |
|
|
inlineexplicit |
shared_ptr< string_feature > jubatus::core::fv_converter::string_feature_factory::create |
( |
const std::string & |
name, |
|
|
const param_t & |
params |
|
) |
| const |
Definition at line 82 of file string_feature_factory.cpp.
References ext_, and JUBATUS_EXCEPTION.
86 if (name ==
"ngram") {
87 return create_character_ngram(params);
88 }
else if (name ==
"regexp") {
89 return create_regexp(params);
90 }
else if (
ext_ && (p =
ext_(name, params))) {
91 return shared_ptr<string_feature>(p);
94 converter_exception(std::string(
"unknown splitter name: ") + name));
#define JUBATUS_EXCEPTION(e)
The documentation for this class was generated from the following files: