diff options
author | Kenneth Heafield <github@kheafield.com> | 2013-04-25 22:42:30 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2013-04-25 22:42:30 +0400 |
commit | f1d366381033c0caae18f8d15305ded38734bdbf (patch) | |
tree | 22b0cbd3acc337a995701629bf9facbe179f5618 /moses/Phrase.cpp | |
parent | 8a1e944bb428a0af9f6c82c26e5633361ce4052c (diff) |
Back FactorCollection with a memory pool. Less memory for large vocabularies.
Diffstat (limited to 'moses/Phrase.cpp')
-rw-r--r-- | moses/Phrase.cpp | 5 |
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; } |