| 
    Reranker Framework (ReFr)
    
   Reranking framework for structure prediction and discriminative language modeling 
   | 
 
Definition for executable that reads in reranker::CandidateSet instances from a stream and then optionally runs feature extractors on those instances using an reranker::ExecutiveFeatureExtractor and, finally, trains or tests a model on those instances. More...
#include <iostream>#include <fstream>#include <string>#include <cstdlib>#include <memory>#include <vector>#include "candidate.H"#include "candidate-set.H"#include "candidate-set-reader.H"#include "candidate-set-writer.H"#include "executive-feature-extractor.H"#include "interpreter.H"#include "model.H"#include "model-merge-reducer.H"#include "model-reader.H"#include "model-proto-writer.H"#include "perceptron-model.H"#include "symbol-table.H"Go to the source code of this file.
Macros | |
| #define | DEBUG 0 | 
| #define | PROG_NAME "run-model" | 
| #define | DEFAULT_MAX_EXAMPLES -1 | 
| #define | DEFAULT_MAX_CANDIDATES -1 | 
| #define | DEFAULT_MODEL_CONFIG "PerceptronModel(name(\"MyPerceptronModel\"))" | 
| #define | DEFAULT_REPORTING_INTERVAL 1000 | 
| #define | DEFAULT_COMPACTIFY_INTERVAL 10000 | 
| #define | DEFAULT_USE_WEIGHTED_LOSS true | 
| #define | XSTR(arg) STR(arg) | 
| Expands the string value of the specified argument using the STR macro.  More... | |
| #define | STR(arg) #arg | 
| “Returns” the string value of the specified argument.  More... | |
Functions | |
| void | usage () | 
| bool | check_for_required_arg (int argc, int i, string err_msg) | 
| void | read_and_extract_features (const vector< string > &files, CandidateSetReader &csr, bool compressed, bool use_base64, shared_ptr< ExecutiveFeatureExtractor > efe, vector< shared_ptr< CandidateSet > > &examples) | 
| int | main (int argc, char **argv) | 
Variables | |
| const char * | usage_msg [] | 
Definition for executable that reads in reranker::CandidateSet instances from a stream and then optionally runs feature extractors on those instances using an reranker::ExecutiveFeatureExtractor and, finally, trains or tests a model on those instances.
(Recall that a reranker::ExecutiveFeatureExtractor is like a regular feature extractor, but wears fancypants.)
Definition in file run-model.C.
| #define DEBUG 0 | 
Definition at line 61 of file run-model.C.
| #define DEFAULT_COMPACTIFY_INTERVAL 10000 | 
Definition at line 69 of file run-model.C.
| #define DEFAULT_MAX_CANDIDATES -1 | 
Definition at line 66 of file run-model.C.
| #define DEFAULT_MAX_EXAMPLES -1 | 
Definition at line 65 of file run-model.C.
| #define DEFAULT_MODEL_CONFIG "PerceptronModel(name(\"MyPerceptronModel\"))" | 
Definition at line 67 of file run-model.C.
| #define DEFAULT_REPORTING_INTERVAL 1000 | 
Definition at line 68 of file run-model.C.
| #define DEFAULT_USE_WEIGHTED_LOSS true | 
Definition at line 70 of file run-model.C.
| #define PROG_NAME "run-model" | 
Definition at line 63 of file run-model.C.
| #define STR | ( | arg | ) | #arg | 
“Returns” the string value of the specified argument.
Definition at line 77 of file run-model.C.
| #define XSTR | ( | arg | ) | STR(arg) | 
Expands the string value of the specified argument using the STR macro.
Definition at line 75 of file run-model.C.
| bool check_for_required_arg | ( | int | argc, | 
| int | i, | ||
| string | err_msg | ||
| ) | 
Definition at line 161 of file run-model.C.
| int main | ( | int | argc, | 
| char ** | argv | ||
| ) | 
Definition at line 194 of file run-model.C.
| void read_and_extract_features | ( | const vector< string > & | files, | 
| CandidateSetReader & | csr, | ||
| bool | compressed, | ||
| bool | use_base64, | ||
| shared_ptr< ExecutiveFeatureExtractor > | efe, | ||
| vector< shared_ptr< CandidateSet > > & | examples | ||
| ) | 
Definition at line 171 of file run-model.C.
| void usage | ( | ) | 
Definition at line 153 of file run-model.C.
| const char* usage_msg[] | 
Definition at line 82 of file run-model.C.
 1.8.6