Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
A class to construct a CandidateSetMessage from a CandidateSet instance. More...
#include <candidate-set-proto-writer.H>
Public Member Functions | |
CandidateSetProtoWriter () | |
Constructs a new instance that can serialize CandidateSet instances to CandidateSetMessage protocol buffer messages. More... | |
virtual | ~CandidateSetProtoWriter () |
Destroys this writer. More... | |
void | Write (const CandidateSet &set, CandidateSetMessage *candidate_set_message) const |
Serializes a CandidateSet instance to a CandidateSetMessage. More... | |
A class to construct a CandidateSetMessage from a CandidateSet instance.
Definition at line 62 of file candidate-set-proto-writer.H.
|
inline |
Constructs a new instance that can serialize CandidateSet instances to CandidateSetMessage protocol buffer messages.
Definition at line 66 of file candidate-set-proto-writer.H.
|
inlinevirtual |
Destroys this writer.
Definition at line 68 of file candidate-set-proto-writer.H.
void reranker::CandidateSetProtoWriter::Write | ( | const CandidateSet & | set, |
CandidateSetMessage * | candidate_set_message | ||
) | const |
Serializes a CandidateSet instance to a CandidateSetMessage.
set | the CandidateSet to be serialized to the specified CandidateSetMessage |
candidate_set_message | the CandidateSetMessage to be filled in by this method with the serialized version of the specified CandidateSet |
Definition at line 42 of file candidate-set-proto-writer.C.