diff options
author | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-01 20:44:36 +0400 |
---|---|---|
committer | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-01 20:44:36 +0400 |
commit | 332815190bd6981249fb03a61f79d21e37f8be28 (patch) | |
tree | 00b32eeca622e38dc520f8b913de6a0997ad0456 | |
parent | c345a0ff841145a43ee5a7629beff3a428b22530 (diff) |
checks whether input file exists
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@448 1f5c12ca-751b-0410-a591-d2e778427230
-rwxr-xr-x | moses/src/Parameter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/src/Parameter.cpp b/moses/src/Parameter.cpp index 64900fd3b..6d0074227 100755 --- a/moses/src/Parameter.cpp +++ b/moses/src/Parameter.cpp @@ -116,6 +116,8 @@ bool Parameter::Validate() // language model if (ret) ret = FilesExist("lmodel-file", 3); + if (ret) + ret = FilesExist("input-file", 0); return ret; } |