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:
authorhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2006-07-19 20:59:16 +0400
committerhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2006-07-19 20:59:16 +0400
commitcaf6cfe912b9cae1effa6afc5e73b75ebd4222ab (patch)
treec34963c7691dcee98c757e6ac9d1146f42bf540e /moses
parentfb40b62acd1081a9ab88050051e02d1dbb496bf0 (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-xmoses/src/GenerationDictionary.cpp2
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
{