Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
reranker::CandidateSetProtoReader Class Reference

A class to fill in a CandidateSet based on a CandidateSetMessage, crucially constructing new Candidate instances from each CandidateMessage inside the CandidateSetMessage. More...

#include <candidate-set-proto-reader.H>

Public Member Functions

 CandidateSetProtoReader ()
 
virtual ~CandidateSetProtoReader ()
 
void Read (const CandidateSetMessage &m, CandidateSet &set)
 Fills in the specified CandidateSet based on the specified CandidateSetMessage, crucially constructing new Candidate instances from each CandidateMessage inside the CandidateSetMessage. More...
 
void Read (const CandidateSetMessage &m, int max_candidates, CandidateSet &set)
 Identical to read, but specifies a maximum number of candidates to be read per candidate set (for debugging). More...
 
void ClearStrings ()
 

Detailed Description

A class to fill in a CandidateSet based on a CandidateSetMessage, crucially constructing new Candidate instances from each CandidateMessage inside the CandidateSetMessage.

Definition at line 61 of file candidate-set-proto-reader.H.

Constructor & Destructor Documentation

reranker::CandidateSetProtoReader::CandidateSetProtoReader ( )
inline

Definition at line 63 of file candidate-set-proto-reader.H.

virtual reranker::CandidateSetProtoReader::~CandidateSetProtoReader ( )
inlinevirtual

Definition at line 64 of file candidate-set-proto-reader.H.

Member Function Documentation

void reranker::CandidateSetProtoReader::ClearStrings ( )
inline

Definition at line 90 of file candidate-set-proto-reader.H.

void reranker::CandidateSetProtoReader::Read ( const CandidateSetMessage &  m,
CandidateSet set 
)
inline

Fills in the specified CandidateSet based on the specified CandidateSetMessage, crucially constructing new Candidate instances from each CandidateMessage inside the CandidateSetMessage.

Parameters
[in]mthe message from which to fill in a CandidateSet
[out]setthe CandidateSet to be filled in based on the specified CandidateSetMessage

Definition at line 73 of file candidate-set-proto-reader.H.

void reranker::CandidateSetProtoReader::Read ( const CandidateSetMessage &  m,
int  max_candidates,
CandidateSet set 
)

Identical to read, but specifies a maximum number of candidates to be read per candidate set (for debugging).

Parameters
[in]mthe message from which to fill in a CandidateSet
[in]max_candidatesthe maximum number of candidates to read when filling in any CandidateSet, or -1 if there is no maximum
[out]setthe CandidateSet to be filled in based on the specified CandidateSetMessage

Definition at line 66 of file candidate-set-proto-reader.C.


The documentation for this class was generated from the following files: