diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-09 18:48:36 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-09 18:48:36 +0400 |
commit | 92163d50913d3d14ae7796e882bf3f6533575b44 (patch) | |
tree | 019f106380e2aed50abc4095a2e502200cbf9853 /moses/InputPath.cpp | |
parent | ffba363961502d3fb31bcd2648d8b27aafa34b16 (diff) |
prefix subphrase optimization done for confusion networks
Diffstat (limited to 'moses/InputPath.cpp')
-rw-r--r-- | moses/InputPath.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/moses/InputPath.cpp b/moses/InputPath.cpp index 354e48197..43b4207cf 100644 --- a/moses/InputPath.cpp +++ b/moses/InputPath.cpp @@ -1,5 +1,6 @@ #include "InputPath.h" #include "ScoreComponentCollection.h" + namespace Moses { InputPath::InputPath(const Phrase &phrase, const WordsRange &range, const InputPath *prevNode @@ -7,13 +8,8 @@ InputPath::InputPath(const Phrase &phrase, const WordsRange &range, const InputP :m_prevNode(prevNode) ,m_phrase(phrase) ,m_range(range) + ,m_inputScore(inputScore) { - if (inputScore) { - m_inputScore = new ScoreComponentCollection(*inputScore); - } - else { - m_inputScore = NULL; - } } InputPath::~InputPath() |