diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-04 16:08:14 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-04 16:08:14 +0400 |
commit | a0b6c381e017e72f0b26850d5527ce946104d537 (patch) | |
tree | 02361d93f5632a03dfa1c9af2a23c1348b9cb83d /moses/WordLattice.cpp | |
parent | f18e35c42a9d07ca11d5fed107f97999076cfae5 (diff) |
correct creation of input paths for lattices
Diffstat (limited to 'moses/WordLattice.cpp')
-rw-r--r-- | moses/WordLattice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/WordLattice.cpp b/moses/WordLattice.cpp index b44534d2f..35f67a13e 100644 --- a/moses/WordLattice.cpp +++ b/moses/WordLattice.cpp @@ -212,15 +212,15 @@ WordLattice::CreateTranslationOptionCollection() const float translationOptionThreshold = StaticData::Instance().GetTranslationOptionThreshold(); TranslationOptionCollection *rv = NULL; - rv = new TranslationOptionCollectionConfusionNet(*this, maxNoTransOptPerCoverage, translationOptionThreshold); - /* + //rv = new TranslationOptionCollectionConfusionNet(*this, maxNoTransOptPerCoverage, translationOptionThreshold); + if (StaticData::Instance().GetUseLegacyPT()) { rv = new TranslationOptionCollectionConfusionNet(*this, maxNoTransOptPerCoverage, translationOptionThreshold); } else { rv = new TranslationOptionCollectionLattice(*this, maxNoTransOptPerCoverage, translationOptionThreshold); } - */ + CHECK(rv); return rv; } |