diff options
author | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-07-19 20:59:16 +0400 |
---|---|---|
committer | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-07-19 20:59:16 +0400 |
commit | caf6cfe912b9cae1effa6afc5e73b75ebd4222ab (patch) | |
tree | c34963c7691dcee98c757e6ac9d1146f42bf540e /moses | |
parent | fb40b62acd1081a9ab88050051e02d1dbb496bf0 (diff) |
returns NULL if word not found in genration table
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@191 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses')
-rwxr-xr-x | moses/src/GenerationDictionary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/src/GenerationDictionary.cpp b/moses/src/GenerationDictionary.cpp index 59e14cde9..f3bdd56e3 100755 --- a/moses/src/GenerationDictionary.cpp +++ b/moses/src/GenerationDictionary.cpp @@ -112,7 +112,7 @@ const OutputWordCollection *GenerationDictionary::FindWord(const FactorArray &fa std::map<Word , OutputWordCollection>::const_iterator iter = m_collection.find(word); if (iter == m_collection.end()) { // can't find source phrase - ret = &m_unknownWord; + ret = NULL; } else { |