Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
extract-features.C File Reference

Definition for executable that reads in reranker::CandidateSet instances from a stream and then runs feature extractors on those instances using an reranker::ExecutiveFeatureExtractor. More...

#include <string>
#include <cstdlib>
#include <memory>
#include <vector>
#include "../proto/dataio.h"
#include "candidate-set.H"
#include "candidate-set-iterator.H"
#include "candidate-set-writer.H"
#include "executive-feature-extractor.H"
#include "symbol-table.H"

Go to the source code of this file.

Macros

#define PROG_NAME   "extract-features"
 
#define DEFAULT_MAX_EXAMPLES   -1
 
#define DEFAULT_MAX_CANDIDATES   -1
 
#define DEFAULT_REPORTING_INTERVAL   1000
 
#define XSTR(arg)   STR(arg)
 
#define STR(arg)   #arg
 

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 []
 

Detailed Description

Definition for executable that reads in reranker::CandidateSet instances from a stream and then runs feature extractors on those instances using an reranker::ExecutiveFeatureExtractor.

(Recall that a reranker::ExecutiveFeatureExtractor is like a regular feature extractor, but wears fancypants.)

Author
dbike.nosp@m.l@go.nosp@m.ogle..nosp@m.com (Dan Bikel)

Definition in file extract-features.C.

Macro Definition Documentation

#define DEFAULT_MAX_CANDIDATES   -1

Definition at line 55 of file extract-features.C.

#define DEFAULT_MAX_EXAMPLES   -1

Definition at line 54 of file extract-features.C.

#define DEFAULT_REPORTING_INTERVAL   1000

Definition at line 56 of file extract-features.C.

#define PROG_NAME   "extract-features"

Definition at line 52 of file extract-features.C.

#define STR (   arg)    #arg

Definition at line 60 of file extract-features.C.

#define XSTR (   arg)    STR(arg)

Definition at line 59 of file extract-features.C.

Function Documentation

bool check_for_required_arg ( int  argc,
int  i,
string  err_msg 
)

Definition at line 112 of file extract-features.C.

int main ( int  argc,
char **  argv 
)

Definition at line 123 of file extract-features.C.

void usage ( )

Definition at line 104 of file extract-features.C.

Variable Documentation

const char* usage_msg[]

Definition at line 66 of file extract-features.C.