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
path: root/moses
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-03-20 18:45:40 +0400
committerKenneth Heafield <github@kheafield.com>2012-03-20 18:45:40 +0400
commitee580d22be2d65e7e887118009e78e00ced6c754 (patch)
tree9ba9f91e34e7c5f2d49ae6a15ca771f6b9190172 /moses
parent989bb308a09d46f0138ed5279dd9122b275075b0 (diff)
parent8e79cd56928983c84ad690f14411f8b06eda09af (diff)
Merge branch 'master' of github.com:moses-smt/mosesdecoder
Diffstat (limited to 'moses')
-rw-r--r--moses/src/GlobalLexicalModel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/moses/src/GlobalLexicalModel.cpp b/moses/src/GlobalLexicalModel.cpp
index be4d667d0..84b3a3838 100644
--- a/moses/src/GlobalLexicalModel.cpp
+++ b/moses/src/GlobalLexicalModel.cpp
@@ -42,7 +42,6 @@ GlobalLexicalModel::~GlobalLexicalModel()
}
delete iter->first; // delete output word
}
- // if (m_cache != NULL) delete m_cache;
}
void GlobalLexicalModel::LoadData(const string &filePath,
@@ -153,7 +152,7 @@ float GlobalLexicalModel::ScorePhrase( const TargetPhrase& targetPhrase ) const
float GlobalLexicalModel::GetFromCacheOrScorePhrase( const TargetPhrase& targetPhrase ) const
{
LexiconCache& m_cache = m_local->cache;
- map< const TargetPhrase*, float >::const_iterator query = m_cache.find( &targetPhrase );
+ const LexiconCache::const_iterator query = m_cache.find( &targetPhrase );
if ( query != m_cache.end() ) {
return query->second;
}