Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
An executable that loads one or more development test files into memory and then continuously reads filenames from stdin
, loading the Model instance from each file and evaluating on the development test data, printing the loss to stdout
.
More...
#include <iostream>
#include <fstream>
#include <string>
#include <memory>
#include <unistd.h>
#include "candidate-set-iterator.H"
#include "candidate-set-reader.H"
#include "model.H"
#include "model-reader.H"
Go to the source code of this file.
Macros | |
#define | DEBUG 0 |
#define | PROG_NAME "piped-model-evaluator" |
#define | DEFAULT_MAX_EXAMPLES -1 |
#define | DEFAULT_MAX_CANDIDATES -1 |
#define | DEFAULT_REPORTING_INTERVAL 1000 |
#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) |
int | main (int argc, char **argv) |
Variables | |
const char * | usage_msg [] |
An executable that loads one or more development test files into memory and then continuously reads filenames from stdin
, loading the Model instance from each file and evaluating on the development test data, printing the loss to stdout
.
Definition in file piped-model-evaluator.C.
#define DEBUG 0 |
Definition at line 49 of file piped-model-evaluator.C.
#define DEFAULT_MAX_CANDIDATES -1 |
Definition at line 54 of file piped-model-evaluator.C.
#define DEFAULT_MAX_EXAMPLES -1 |
Definition at line 53 of file piped-model-evaluator.C.
#define DEFAULT_REPORTING_INTERVAL 1000 |
Definition at line 55 of file piped-model-evaluator.C.
#define DEFAULT_USE_WEIGHTED_LOSS true |
Definition at line 56 of file piped-model-evaluator.C.
#define PROG_NAME "piped-model-evaluator" |
Definition at line 51 of file piped-model-evaluator.C.
#define STR | ( | arg | ) | #arg |
“Returns” the string value of the specified argument.
Definition at line 63 of file piped-model-evaluator.C.
#define XSTR | ( | arg | ) | STR(arg) |
Expands the string value of the specified argument using the STR macro.
Definition at line 61 of file piped-model-evaluator.C.
bool check_for_required_arg | ( | int | argc, |
int | i, | ||
string | err_msg | ||
) |
Definition at line 108 of file piped-model-evaluator.C.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 119 of file piped-model-evaluator.C.
void usage | ( | ) |
Definition at line 100 of file piped-model-evaluator.C.
const char* usage_msg[] |
Definition at line 68 of file piped-model-evaluator.C.