diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-03 20:29:07 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-03 20:29:07 +0400 |
commit | a41dbeba46cd9dd0eb0135461464a49e79ac96b5 (patch) | |
tree | 3b01f0503691aba7e74c705877ca7aeb8d27fb53 /moses/WordLattice.cpp | |
parent | 73513c182dd3e12abf4a1df82a7e7808e3dfab83 (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 8f651afc9..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; } |