diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 22:44:52 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 22:44:52 +0400 |
commit | 563cdc527a814fd6cf7ffae0c7a5fd86999e0a7a (patch) | |
tree | 4a690b3cfdc825cea603d8687e9d67f7ec4ab8cc /moses/TranslationOptionCollectionText.cpp | |
parent | 0d60b7f2ddcfd4be0a74e112eba7d2a2b96dee58 (diff) |
use input path for unknown word processing in phrase-based
Diffstat (limited to 'moses/TranslationOptionCollectionText.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionText.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TranslationOptionCollectionText.cpp b/moses/TranslationOptionCollectionText.cpp index a5a1d0a49..9b306fb54 100644 --- a/moses/TranslationOptionCollectionText.cpp +++ b/moses/TranslationOptionCollectionText.cpp @@ -66,8 +66,8 @@ TranslationOptionCollectionText::TranslationOptionCollectionText(Sentence const */ void TranslationOptionCollectionText::ProcessUnknownWord(size_t sourcePos) { - const Word &sourceWord = m_source.GetWord(sourcePos); - ProcessOneUnknownWord(sourceWord,sourcePos); + const InputPath &inputPath = GetInputPath(sourcePos, sourcePos); + ProcessOneUnknownWord(inputPath,sourcePos); } /** |