mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 22:45:50 +03:00
updated typename
This commit is contained in:
parent
d0b5c09b9e
commit
ec784d969c
@ -152,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user