diff options
author | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2014-12-04 18:54:05 +0300 |
---|---|---|
committer | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2014-12-04 18:54:05 +0300 |
commit | 7a299de66b66b4cabf56d8792decce3f070c6175 (patch) | |
tree | aa38cdc25a72f91108c470996f87f168865f325e | |
parent | 24a8a6a51104c8518fcb8d252f83ff580986c2db (diff) |
avoid necessity of masking "{{" in the data
-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); |