From 047b6eae4e5224d55c43d0994f2691692517f28d Mon Sep 17 00:00:00 2001 From: graehl Date: Wed, 14 Jul 2010 21:25:23 +0000 Subject: vest stop iterations before decoding uselessly git-svn-id: https://ws10smt.googlecode.com/svn/trunk@252 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/dist-vest.pl | 9 +++++---- 1 file 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`; -- cgit v1.2.3