diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-07-11 19:26:48 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-07-11 19:26:48 +0400 |
commit | a402523ef57f09f72d5ab3b59967047de08d64b3 (patch) | |
tree | 6b6441af2a9adf7ec2331862b761e9cddea0d708 /moses/Word.cpp | |
parent | 8f5dc2b9e7949af747b22b85714265e8f7ee481c (diff) |
calculate baseline score without optimisation
Diffstat (limited to 'moses/Word.cpp')
-rw-r--r-- | moses/Word.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/moses/Word.cpp b/moses/Word.cpp index 04cbdb6a7..b1ea77059 100644 --- a/moses/Word.cpp +++ b/moses/Word.cpp @@ -139,8 +139,7 @@ CreateFromString(FactorDirection direction << " contains factor delimiter " << StaticData::Instance().GetFactorDelimiter() << " too many times."); - - UTIL_THROW_IF(i < factorOrder.size(),util::Exception, + UTIL_THROW_IF(!isNonTerminal && i < factorOrder.size(),util::Exception, "Too few factors in string '" << str << "'."); } else |