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:
authorBarry Haddow <barry.haddow@gmail.com>2013-05-14 11:54:29 +0400
committerBarry Haddow <barry.haddow@gmail.com>2013-05-14 11:54:29 +0400
commita4ce50f2fb154f2c4f86d9ada284ea76b716eedd (patch)
tree9d407074cfa5294674102809ecbaef1d522aaecd /scripts/training
parent8dea11606411bbf6280930d7a2ffff888aca503e (diff)
Fix for cygwin
Diffstat (limited to 'scripts/training')
-rwxr-xr-xscripts/training/train-model.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/training/train-model.perl b/scripts/training/train-model.perl
index 503cb0a46..da4590932 100755
--- a/scripts/training/train-model.perl
+++ b/scripts/training/train-model.perl
@@ -446,7 +446,7 @@ if ($STEPS[9]) {
die "ERROR: Filename is not absolute: $filename"
unless file_name_is_absolute $filename;
die "ERROR: Language model file not found or empty: $filename"
- if ! -s $filename;
+ if ! -e $filename;
push @___LM, [ $f, $order, $filename, $type ];
}
}