ModErn Text Analysis
META Enumerates Textual Applications
|
Factory that is responsible for creating binary classifiers from configuration files. More...
#include <binary_classifier_factory.h>
Private Member Functions | |
binary_classifier_factory () | |
Constructs the binary_classifier_factory singleton. | |
template<class Classifier > | |
void | reg () |
Registers a classifier with the factory (used internally). | |
Private Attributes | |
friend | base_factory |
Additional Inherited Members | |
Public Types inherited from meta::util::factory< binary_classifier_factory, binary_classifier, const cpptoml::table &, std::shared_ptr< index::forward_index >, class_label, class_label > | |
using | base_factory = factory |
Convenience typedef for the derived classes. | |
using | pointer = std::unique_ptr< binary_classifier > |
The return type for the create method. | |
using | factory_method = std::function< pointer(Arguments...)> |
Convenience typedef for the factory methods used to create objects. | |
Public Member Functions inherited from meta::util::factory< binary_classifier_factory, binary_classifier, const cpptoml::table &, std::shared_ptr< index::forward_index >, class_label, class_label > | |
void | add (const std::string &identifier, Function &&fn) |
Associates the given identifier with the given factory method. More... | |
pointer | create (const std::string &identifier, Args &&...args) |
Creates a new object based on the factory method parameters. More... | |
Static Public Member Functions inherited from meta::util::factory< binary_classifier_factory, binary_classifier, const cpptoml::table &, std::shared_ptr< index::forward_index >, class_label, class_label > | |
static binary_classifier_factory & | get () |
Obtains the singleton. More... | |
Factory that is responsible for creating binary classifiers from configuration files.
Clients should use the register_binary_classifier method instead of this class directly to add their own binary classifiers.