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>2012-10-16 18:23:26 +0400
committerBarry Haddow <barry.haddow@gmail.com>2012-10-16 18:23:26 +0400
commit42d74f2306bd6620d7f1bd4b47a9afb145b99feb (patch)
treeec4c195f3df2700566767499a0c43c9cc5d3b528
parent365e68011521fee9d9e8f22801e58891c5fa5f0b (diff)
Fix regression testmiramerge
-rw-r--r--moses/src/RuleTable/LoaderStandard.cpp5
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;