diff options
author | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-11 21:05:04 +0400 |
---|---|---|
committer | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-11 21:05:04 +0400 |
commit | e1936af681cde751dd5b623587fa76ae3cd4b158 (patch) | |
tree | 5bbdec691fe2ec69520274abf3ef28869b1119a0 /scripts | |
parent | 8e4128beef2f6d27bb7394821d0c6709faac3426 (diff) |
marking finished_step also after last iteration finished
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@655 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/training/mert-moses.pl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/scripts/training/mert-moses.pl b/scripts/training/mert-moses.pl index b1f234677..58f7c4f01 100755 --- a/scripts/training/mert-moses.pl +++ b/scripts/training/mert-moses.pl @@ -574,15 +574,16 @@ while(1) { } } + open F, "> finished_step.txt" or die "Can't mark finished step"; + print F $run."\n"; + close F; + + if ($shouldstop) { print STDERR "None of the weights changed more than $minimum_required_change_in_weights. Stopping.\n"; last; } - open F, "> finished_step.txt" or die "Can't mark finished step"; - print F $run."\n"; - close F; - } print "Training finished at ".`date`; @@ -591,6 +592,12 @@ safesystem ("cp cmert.log run$run.cmert.log") or die; create_config($___CONFIG, "./moses.ini", $use_triples, $run, $devbleu); +# just to be sure that we have the really last finished step marked +open F, "> finished_step.txt" or die "Can't mark finished step"; +print F $run."\n"; +close F; + + #chdir back to the original directory # useless, just to remind we were not there chdir($cwd); |