Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
A class to de-serialize a Model instance from a ModelMessage instance. More...
#include <model-proto-reader.H>
Public Member Functions | |
ModelProtoReader () | |
Constructs a new instance that can de-serialize Model instances from ModelMessage protocol buffer messages. More... | |
virtual | ~ModelProtoReader () |
Destroys this reader. More... | |
virtual void | Read (const ModelMessage &model_message, Model *model) const =0 |
De-serializes a Model instance from a ModelMessage. More... | |
virtual void | ReadFeatures (istream &is, Model *model, bool skip_key=false, const string &separator="\t") const =0 |
De-serializes FeatureMessage instances from the specified input stream. More... | |
Public Member Functions inherited from reranker::FactoryConstructible | |
virtual | ~FactoryConstructible () |
virtual void | RegisterInitializers (Initializers &initializers) |
virtual void | Init (const Environment *env, const string &arg) |
A class to de-serialize a Model instance from a ModelMessage instance.
Definition at line 53 of file model-proto-reader.H.
|
inline |
Constructs a new instance that can de-serialize Model instances from ModelMessage protocol buffer messages.
Definition at line 57 of file model-proto-reader.H.
|
inlinevirtual |
Destroys this reader.
Definition at line 59 of file model-proto-reader.H.
|
pure virtual |
De-serializes a Model instance from a ModelMessage.
[in] | model_message | the ModelMessage from which to de-serialize a Model instance |
[out] | model | the Model to be de-serialized from the specified ModelMessage |
Implemented in reranker::PerceptronModelProtoReader.
|
pure virtual |
De-serializes FeatureMessage
instances from the specified input stream.
[in] | is | input stream from which to read data |
[in,out] | model | model to add features to |
[in] | skip_key | assumes there is a key before the separator |
[in] | separator | the string separator to use |
Implemented in reranker::PerceptronModelProtoReader.