A class for reading streams of training or test instances, where each training or test instance is a reranker::CandidateSet object.
More...
#include <candidate-set-reader.H>
A class for reading 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-reader.H.
reranker::CandidateSetReader::CandidateSetReader |
( |
long |
reporting_interval = 100 | ) |
|
|
inline |
reranker::CandidateSetReader::CandidateSetReader |
( |
int |
max_num_to_read, |
|
|
int |
max_candidates_per_set, |
|
|
long |
reporting_interval = 100 |
|
) |
| |
|
inline |
virtual reranker::CandidateSetReader::~CandidateSetReader |
( |
| ) |
|
|
inlinevirtual |
void reranker::CandidateSetReader::ClearStrings |
( |
| ) |
|
|
inline |
void reranker::CandidateSetReader::Close |
( |
| ) |
|
|
inline |
long reranker::CandidateSetReader::num_read |
( |
| ) |
|
|
inline |
void reranker::CandidateSetReader::Open |
( |
const string & |
filename, |
|
|
bool |
compressed, |
|
|
bool |
use_base64, |
|
|
bool |
reset_counters = true |
|
) |
| |
|
inline |
void reranker::CandidateSetReader::Read |
( |
const string & |
filename, |
|
|
bool |
compressed, |
|
|
bool |
use_base64, |
|
|
bool |
reset_counters, |
|
|
vector< shared_ptr< CandidateSet > > & |
examples |
|
) |
| |
|
inline |
Reads a stream of CandidateSet instances from the specified file or from standard input.
- Parameters
-
[in] | filename | the filename from which to read; specify "-" to read from standard input |
[in] | compressed | whether the input stream is compressed |
[in] | use_base64 | whether to do base64 decoding |
[in] | reset_counters | whether to invoke Reset prior to opening the specified file |
[out] | examples | the vector of pointers to CandidateSet instances to which to append (pointers to) newly-read and -constructed CandidateSet instances |
Definition at line 118 of file candidate-set-reader.H.
shared_ptr<CandidateSet> reranker::CandidateSetReader::ReadNext |
( |
bool & |
reader_valid | ) |
|
|
inline |
void reranker::CandidateSetReader::Reset |
( |
| ) |
|
|
inline |
void reranker::CandidateSetReader::set_verbosity |
( |
int |
verbosity | ) |
|
|
inline |
Sets the verbosity of this reader (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 reader to have |
Definition at line 221 of file candidate-set-reader.H.
long reranker::CandidateSetReader::total_num_read |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: