diff options
-rw-r--r-- | dtrain/dtrain.cc | 8 | ||||
-rw-r--r-- | dtrain/test/example/cdec.ini | 1 | ||||
-rw-r--r-- | dtrain/test/example/dtrain.ini | 4 |
3 files changed, 3 insertions, 10 deletions
diff --git a/dtrain/dtrain.cc b/dtrain/dtrain.cc index 9db8516c..18024bae 100644 --- a/dtrain/dtrain.cc +++ b/dtrain/dtrain.cc @@ -202,7 +202,6 @@ main(int argc, char** argv) vector<vector<WordID> > ref_ids_buf; // references as WordID vecs // where temp files go string tmp_path = cfg["tmp"].as<string>(); - vector<string> w_tmp_files; // used for keep #ifdef DTRAIN_LOCAL string refs_fn = cfg["refs"].as<string>(); ReadFile refs(refs_fn); @@ -630,13 +629,6 @@ if (false) { cerr << _p2 << "This took " << overall_time/60. << " min." << endl; } - if (keep) { - cout << endl << "Weight files per iteration:" << endl; - for (unsigned i = 0; i < w_tmp_files.size(); i++) { - cout << w_tmp_files[i] << endl; - } - } - return 0; } diff --git a/dtrain/test/example/cdec.ini b/dtrain/test/example/cdec.ini index d88779fa..ad958ca6 100644 --- a/dtrain/test/example/cdec.ini +++ b/dtrain/test/example/cdec.ini @@ -7,6 +7,7 @@ feature_function=WordPenalty feature_function=KLanguageModel test/example/nc-wmt11.en.srilm.gz #feature_function=ArityPenalty #feature_function=CMR2008ReorderingFeatures +#feature_function=Dwarf #feature_function=InputIndicator #feature_function=LexNullJump #feature_function=NewJump diff --git a/dtrain/test/example/dtrain.ini b/dtrain/test/example/dtrain.ini index 9b9f45e7..cc9e6d4d 100644 --- a/dtrain/test/example/dtrain.ini +++ b/dtrain/test/example/dtrain.ini @@ -1,5 +1,5 @@ input=test/example/nc-wmt11.1k.gz # use '-' for stdin -output=- # a weights file +output=w.gz # a weights file decoder_config=test/example/cdec.ini # a ini for cdec # these will be printed on each iteration print_weights=Glue WordPenalty LanguageModel LanguageModel_OOV PhraseModel_0 PhraseModel_1 PhraseModel_2 PhraseModel_3 PhraseModel_4 PhraseModel_5 PhraseModel_6 PassThrough @@ -17,4 +17,4 @@ sample_from=kbest filter=uniq pair_sampling=108010 pair_threshold=0 -select_weights=VOID +select_weights=last |