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 | 851207fcbd93c4a0857e0d7719007abe9c82dae1 (patch) | |
tree | d614b3725b9b5a911921c634875e0aeeba5e0362 /vest/dist-vest.pl | |
parent | 2987b7369157ea4abc714d1ded34f7698f3a7415 (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`; |