diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-14 21:25:23 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-14 21:25:23 +0000 |
commit | 047b6eae4e5224d55c43d0994f2691692517f28d (patch) | |
tree | 30efe88e597ee2cc5783105ab12b747ba92eca44 /vest/dist-vest.pl | |
parent | aa019418c190eb066e474d52b7a9c017c89e4710 (diff) |
vest stop iterations before decoding uselessly
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@252 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest/dist-vest.pl')
-rwxr-xr-x | vest/dist-vest.pl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl index f81a74a3..666509e3 100755 --- a/vest/dist-vest.pl +++ b/vest/dist-vest.pl @@ -211,6 +211,10 @@ my $lastPScore = 0; while (1){ print STDERR "\n\nITERATION $iteration\n==========\n"; + if ($iteration > $max_iterations){ + print STDERR "\nREACHED STOPPING CRITERION: Maximum iterations\n"; + last; + } # iteration-specific files my $runFile="$dir/run.raw.$iteration"; my $onebestFile="$dir/1best.$iteration"; @@ -219,6 +223,7 @@ while (1){ my $scorerLog="$logdir/scorer.log.$iteration"; `mkdir -p $logdir`; + #decode print STDERR "DECODE\n"; print STDERR `date`; @@ -244,10 +249,6 @@ while (1){ `gzip $runFile`; `gzip $decoderLog`; - if ($iteration > $max_iterations){ - print STDERR "\nREACHED STOPPING CRITERION: Maximum iterations\n"; - last; - } # run optimizer print STDERR `date`; |