37 #ifndef RERANKER_CANDIDATE_SET_PROTO_WRITER_H_
38 #define RERANKER_CANDIDATE_SET_PROTO_WRITER_H_
40 #include <unordered_map>
43 #include "../proto/data.pb.h"
44 #include "../proto/model.pb.h"
51 using std::unordered_map;
53 using confusion_learning::CandidateSetMessage;
54 using confusion_learning::CandidateMessage;
55 using confusion_learning::FeatureVecMessage;
56 using confusion_learning::FeatureMessage;
57 using confusion_learning::ScoreMessage;
78 CandidateSetMessage *candidate_set_message)
const;
Provides the reranker::Candidate class for representing a candidate hypothesis from an initial model...
A class to serialize FeatureVector instances to FeatureVecMessage instances.
void Write(const CandidateSet &set, CandidateSetMessage *candidate_set_message) const
Serializes a CandidateSet instance to a CandidateSetMessage.
A class to construct a CandidateSetMessage from a CandidateSet instance.
virtual ~CandidateSetProtoWriter()
Destroys this writer.
A class to hold a set of candidates, either for training or test.
Serializer for reranker::FeatureVector instances to FeatureVecMessage instances.
Class to hold a single training instance for a reranker, which is a set of examples, typically the n-best output of some input process, posibly including a gold-standard feature vector.
CandidateSetProtoWriter()
Constructs a new instance that can serialize CandidateSet instances to CandidateSetMessage protocol b...