diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2013-05-11 17:13:26 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2013-05-11 17:13:26 +0400 |
commit | 981351758a394ea06ea22cdd810d0735a9af3c9b (patch) | |
tree | 5a6f98e9146e11c2b957500626b54ffb2059bf6a /moses/BitmapContainer.cpp | |
parent | b75d19483341828c51a370eeff4ff89f807a6b42 (diff) |
delete class TranslationSystem
Diffstat (limited to 'moses/BitmapContainer.cpp')
-rw-r--r-- | moses/BitmapContainer.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/moses/BitmapContainer.cpp b/moses/BitmapContainer.cpp index 1a7f9f358..456bf33a9 100644 --- a/moses/BitmapContainer.cpp +++ b/moses/BitmapContainer.cpp @@ -27,7 +27,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "HypothesisStackCubePruning.h" #include "DummyScoreProducers.h" #include "TranslationOptionList.h" -#include "TranslationSystem.h" namespace Moses { @@ -52,11 +51,10 @@ public: class HypothesisScoreOrdererWithDistortion { public: - HypothesisScoreOrdererWithDistortion(const WordsRange* transOptRange, const TranslationSystem* system) : - m_transOptRange(transOptRange), m_system(system) {} + HypothesisScoreOrdererWithDistortion(const WordsRange* transOptRange) : + m_transOptRange(transOptRange) {} const WordsRange* m_transOptRange; - const TranslationSystem* m_system; bool operator()(const Hypothesis* hypoA, const Hypothesis* hypoB) const { CHECK(m_transOptRange != NULL); @@ -112,8 +110,7 @@ BackwardsEdge::BackwardsEdge(const BitmapContainer &prevBitmapContainer , BitmapContainer &parent , const TranslationOptionList &translations , const SquareMatrix &futureScore, - const InputType& itype, - const TranslationSystem* system) + const InputType& itype) : m_initialized(false) , m_prevBitmapContainer(prevBitmapContainer) , m_parent(parent) @@ -170,7 +167,7 @@ BackwardsEdge::BackwardsEdge(const BitmapContainer &prevBitmapContainer CHECK(m_hypotheses[0]->GetTotalScore() >= m_hypotheses[1]->GetTotalScore()); } - HypothesisScoreOrdererWithDistortion orderer (&transOptRange, system); + HypothesisScoreOrdererWithDistortion orderer (&transOptRange); std::sort(m_hypotheses.begin(), m_hypotheses.end(), orderer); // std::sort(m_hypotheses.begin(), m_hypotheses.end(), HypothesisScoreOrdererNoDistortion()); |