diff options
author | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-24 08:15:54 +0400 |
---|---|---|
committer | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-24 08:15:54 +0400 |
commit | 45e40dd9b3adbf45f8d2f0e03bf83f908dcc9cba (patch) | |
tree | c10dc17d4a078c481b3a6bae218ead2d70372aa5 /scripts | |
parent | 752c36cb310a412bfb66bc9d821f9e35795b124b (diff) |
update mert-moses.pl
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/training/mert-moses.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/training/mert-moses.pl b/scripts/training/mert-moses.pl index f1d32228c..4490edba7 100755 --- a/scripts/training/mert-moses.pl +++ b/scripts/training/mert-moses.pl @@ -400,6 +400,9 @@ if (-e $ref_abs) { else { # if multiple file, get a full list of the files my $part = 0; + if (! -e $ref_abs."0" && -e $ref_abs.".ref0") { + $ref_abs .= ".ref"; + } while (-e $ref_abs.$part) { push @references, $ref_abs.$part; $part++; |