diff options
-rw-r--r-- | moses/src/RuleTable/LoaderStandard.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/moses/src/RuleTable/LoaderStandard.cpp b/moses/src/RuleTable/LoaderStandard.cpp index 09b6b4939..e319a5bca 100644 --- a/moses/src/RuleTable/LoaderStandard.cpp +++ b/moses/src/RuleTable/LoaderStandard.cpp @@ -189,7 +189,10 @@ bool RuleTableLoaderStandard::Load(FormatType format StringPiece targetPhraseString(*++pipes); StringPiece scoreString(*++pipes); StringPiece alignString(*++pipes); - StringPiece ruleCountString(*++pipes); + StringPiece ruleCountString("1 1"); + if (++pipes) { + ruleCountString = StringPiece(*pipes); + } if (++pipes) { stringstream strme; |