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:
authorKenneth Heafield <github@kheafield.com>2013-04-25 22:42:30 +0400
committerKenneth Heafield <github@kheafield.com>2013-04-25 22:42:30 +0400
commitf1d366381033c0caae18f8d15305ded38734bdbf (patch)
tree22b0cbd3acc337a995701629bf9facbe179f5618 /moses/Phrase.cpp
parent8a1e944bb428a0af9f6c82c26e5633361ce4052c (diff)
Back FactorCollection with a memory pool. Less memory for large vocabularies.
Diffstat (limited to 'moses/Phrase.cpp')
-rw-r--r--moses/Phrase.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/moses/Phrase.cpp b/moses/Phrase.cpp
index 2e020ef69..7981abdfd 100644
--- a/moses/Phrase.cpp
+++ b/moses/Phrase.cpp
@@ -265,9 +265,8 @@ bool Phrase::Contains(const vector< vector<string> > &subPhraseVector
FactorType factorType = inputFactor[currFactorIndex];
for (size_t currSubPos = 0 ; currSubPos < subSize ; currSubPos++) {
size_t currThisPos = currSubPos + currStartPos;
- const string &subStr = subPhraseVector[currSubPos][currFactorIndex]
- ,&thisStr = GetFactor(currThisPos, factorType)->GetString();
- if (subStr != thisStr) {
+ const string &subStr = subPhraseVector[currSubPos][currFactorIndex];
+ if (subStr != GetFactor(currThisPos, factorType)->GetString()) {
match = false;
break;
}