A class for writing streams of training or test instances, where each training or test instance is a reranker::CandidateSet object.  
 More...
#include <candidate-set-writer.H>
A class for writing streams of training or test instances, where each training or test instance is a reranker::CandidateSet object. 
Definition at line 62 of file candidate-set-writer.H.
 
  
  
      
        
          | reranker::CandidateSetWriter::CandidateSetWriter  | 
          ( | 
          long  | 
          reporting_interval = 1000 | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | virtual reranker::CandidateSetWriter::~CandidateSetWriter  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | void reranker::CandidateSetWriter::Close  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void reranker::CandidateSetWriter::Open  | 
          ( | 
          const string &  | 
          filename,  | 
         
        
           | 
           | 
          bool  | 
          compressed,  | 
         
        
           | 
           | 
          bool  | 
          use_base64  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void reranker::CandidateSetWriter::Reset  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void reranker::CandidateSetWriter::set_max_num_to_write  | 
          ( | 
          int  | 
          max_num_to_write | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void reranker::CandidateSetWriter::set_verbosity  | 
          ( | 
          int  | 
          verbosity | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sets the verbosity of this writer (mostly for debugging purposes). 
There are currently four levels: 
| Level | Meaning  | 
| 0  | None  | 
| 1  | Basic output  | 
| 2  | Very verbose output  | 
| 3  | Extremely verbose output  | 
- Parameters
 - 
  
    | verbosity | the new verbosity level for this writer to have  | 
  
   
Definition at line 172 of file candidate-set-writer.H.
 
 
  
  
      
        
          | void reranker::CandidateSetWriter::Write  | 
          ( | 
          vector< shared_ptr< CandidateSet > > &  | 
          examples,  | 
         
        
           | 
           | 
          const string &  | 
          filename,  | 
         
        
           | 
           | 
          bool  | 
          compressed,  | 
         
        
           | 
           | 
          bool  | 
          use_base64  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Writes a stream of CandidateSet instances to the specified file or to standard output. 
- Parameters
 - 
  
    | [in] | examples | the vector of pointers to CandidateSet instances to write out  | 
    | [in] | filename | the filename to which to write; specify "-" to write to standard output  | 
    | [in] | compressed | whether the output stream is compressed  | 
    | [in] | use_base64 | whether to use base64 encoding  | 
  
   
Definition at line 98 of file candidate-set-writer.H.
 
 
  
  
      
        
          | bool reranker::CandidateSetWriter::WriteNext  | 
          ( | 
          const CandidateSet &  | 
          candidate_set | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
The documentation for this class was generated from the following file: