mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 20:46:59 +03:00
--continue now also attempts to step one extra step back if necessary moses output is not found
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@754 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
568cff8e34
commit
53bbbbfa22
@ -377,10 +377,15 @@ if ($continue) {
|
||||
chomp $step;
|
||||
$step++;
|
||||
close IN;
|
||||
$start_run = $step +1;
|
||||
|
||||
if (! -e "run$step.best$___N_BEST_LIST_SIZE.out.gz") {
|
||||
# allow stepping one extra iteration back
|
||||
$step--;
|
||||
die "Can't start from step $step, because run$step.best$___N_BEST_LIST_SIZE.out.gz was not found!"
|
||||
if ! -e "run$step.best$___N_BEST_LIST_SIZE.out.gz";
|
||||
}
|
||||
|
||||
$start_run = $step +1;
|
||||
|
||||
print STDERR "Reading last cached lambda values (result from step $step)\n";
|
||||
@order_of_lambdas_from_decoder = get_order_of_scores_from_nbestlist("gunzip -c < run$step.best$___N_BEST_LIST_SIZE.out.gz |");
|
||||
|
Loading…
Reference in New Issue
Block a user