Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-04-24 08:15:54 +0400
committerEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-04-24 08:15:54 +0400
commit45e40dd9b3adbf45f8d2f0e03bf83f908dcc9cba (patch)
treec10dc17d4a078c481b3a6bae218ead2d70372aa5 /scripts
parent752c36cb310a412bfb66bc9d821f9e35795b124b (diff)
update mert-moses.pl
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/training/mert-moses.pl3
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++;