Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
An interface for all Factory instances, specifying a few pure virtual methods. More...
#include <factory.H>
Public Member Functions | |
virtual | ~FactoryBase () |
virtual void | Clear ()=0 |
Clears the (possibly static) data of this factory. More... | |
virtual const string | BaseName () const =0 |
Returns the name of the base type of objects constructed by this factory. More... | |
virtual void | CollectRegistered (unordered_set< string > ®istered) const =0 |
Collects the names of types registered with this factory. More... | |
virtual VarMapBase * | CreateVarMap (Environment *env) const =0 |
virtual VarMapBase * | CreateVectorVarMap (Environment *env) const =0 |
An interface for all Factory instances, specifying a few pure virtual methods.
|
inlinevirtual |
|
pure virtual |
Returns the name of the base type of objects constructed by this factory.
Implemented in reranker::Factory< T >, reranker::Factory< reranker::ModelProtoReader >, and reranker::Factory< reranker::Model >.
|
pure virtual |
Clears the (possibly static) data of this factory.
Note
that invoking this method will prevent the factory from functioning! It should only be invoked when the factory is no longer needed by the current process.
Implemented in reranker::Factory< T >, reranker::Factory< reranker::ModelProtoReader >, and reranker::Factory< reranker::Model >.
|
pure virtual |
Collects the names of types registered with this factory.
[out] | registered | registered a set to be modified by this method so that it contains the names of concrete types registered with this factory |
Implemented in reranker::Factory< T >, reranker::Factory< reranker::ModelProtoReader >, and reranker::Factory< reranker::Model >.
|
pure virtual |
|
pure virtual |