diff options
author | Patrick Simianer <p@simianer.de> | 2011-08-29 22:02:45 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-09-23 19:13:58 +0200 |
commit | aa5f96417ff81408b15b54aab35a3c16b845adf8 (patch) | |
tree | cb9715696bf11d095215a97e299e22fed940ec02 /dtrain/common.h | |
parent | 7a562c98d69abfe9ec921f37828f827f44d5dc82 (diff) |
big update: working iterating, pretty output, test scripts and more
Diffstat (limited to 'dtrain/common.h')
-rw-r--r-- | dtrain/common.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dtrain/common.h b/dtrain/common.h index cf365d48..706f51c2 100644 --- a/dtrain/common.h +++ b/dtrain/common.h @@ -7,7 +7,9 @@ #include <vector> #include <cassert> #include <cmath> +#include <iomanip> +// cdec includes #include "sentence_metadata.h" #include "verbose.h" #include "viterbi.h" @@ -16,16 +18,19 @@ #include "decoder.h" #include "weights.h" +// boost includes #include <boost/algorithm/string.hpp> #include <boost/program_options.hpp> +// own headers #include "score.h" -#define DTRAIN_DEFAULT_K 100 -#define DTRAIN_DEFAULT_N 4 -#define DTRAIN_DEFAULT_T 1 - -#define DTRAIN_DOTOUT 100 +#define DTRAIN_DEFAULT_K 100 // k for kbest lists +#define DTRAIN_DEFAULT_N 4 // N for ngrams (e.g. BLEU) +#define DTRAIN_DEFAULT_T 1 // iterations +#define DTRAIN_DEFAULT_SCORER "stupid_bleu" // scorer +#define DTRAIN_DOTS 100 // when to display a '.' +#define DTRAIN_TMP_DIR "/tmp" // put this on a SSD? using namespace std; |