41 #include "../proto/data.pb.h" 
   42 #include "../proto/dataio.h" 
   44 using namespace reranker;
 
   49 int main(
int argc, 
char **argv) {
 
   51   ConfusionProtoIO* reader = NULL;
 
   52   bool is_compressed = 
true;
 
   53   bool use_base64 = 
true;
 
   55     reader = 
new ConfusionProtoIO(argv[1], ConfusionProtoIO::READ,
 
   56                                   is_compressed, use_base64);
 
   58     reader = 
new ConfusionProtoIO(
"", ConfusionProtoIO::READSTD,
 
   59                                   is_compressed, use_base64);
 
   61   bool reader_valid = 
true;
 
   62   while (reader_valid) {
 
   63     confusion_learning::CandidateSetMessage tmp_msg;
 
   64     reader_valid = reader->Read(&tmp_msg);
 
   67         cout << 
"Data: " << tmp_msg.Utf8DebugString();
 
   71     cspr.
Read(tmp_msg, 5, candidate_set);
 
   72     cout << candidate_set;
 
void Read(const CandidateSetMessage &m, CandidateSet &set)
Fills in the specified CandidateSet based on the specified CandidateSetMessage, crucially constructin...
 
Provides the reranker::Candidate class for representing a candidate hypothesis from an initial model...
 
int main(int argc, char **argv)
 
A class to hold a set of candidates, either for training or test. 
 
Reads CandidateSetMessage instances and converts them to reranker::CandidateSet instances. 
 
A class to fill in a CandidateSet based on a CandidateSetMessage, crucially constructing new Candidat...
 
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.