summaryrefslogtreecommitdiff
path: root/vest/dist-vest.pl
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-14 21:25:23 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-14 21:25:23 +0000
commit851207fcbd93c4a0857e0d7719007abe9c82dae1 (patch)
treed614b3725b9b5a911921c634875e0aeeba5e0362 /vest/dist-vest.pl
parent2987b7369157ea4abc714d1ded34f7698f3a7415 (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-xvest/dist-vest.pl9
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`;