diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-04 21:36:20 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-04 21:36:20 +0300 |
commit | 38102061d26c022e0deb5f082422a344748dc5fd (patch) | |
tree | 74a4630736fd10c10dd6a8763a4c57a7a9b0fbef | |
parent | bb6d04a9b780d761d2e8e4b6c335fc44dbe33483 (diff) | |
parent | 7a299de66b66b4cabf56d8792decce3f070c6175 (diff) |
Merge branch 'master' of github.com:moses-smt/mosesdecoder
-rw-r--r-- | phrase-extract/score-main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phrase-extract/score-main.cpp b/phrase-extract/score-main.cpp index 239492613..2a8413c48 100644 --- a/phrase-extract/score-main.cpp +++ b/phrase-extract/score-main.cpp @@ -475,7 +475,8 @@ void processLine( std::string line, std::string &additionalPropertiesString, float &count, float &pcfgSum ) { - size_t foundAdditionalProperties = line.find("||| {{"); + size_t foundAdditionalProperties = line.rfind("|||"); + foundAdditionalProperties = line.find("{{",foundAdditionalProperties); if (foundAdditionalProperties != std::string::npos) { additionalPropertiesString = line.substr(foundAdditionalProperties); line = line.substr(0,foundAdditionalProperties); |