From 4d1679b517ff46a1d6a152796f1033a4c380492c Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 2 Dec 2011 03:59:28 +0100 Subject: dead code --- dtrain/dtrain.cc | 8 -------- dtrain/test/example/cdec.ini | 1 + dtrain/test/example/dtrain.ini | 4 ++-- 3 files changed, 3 insertions(+), 10 deletions(-) (limited to 'dtrain') 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 > ref_ids_buf; // references as WordID vecs // where temp files go string tmp_path = cfg["tmp"].as(); - vector w_tmp_files; // used for keep #ifdef DTRAIN_LOCAL string refs_fn = cfg["refs"].as(); 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 -- cgit v1.2.3