diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-01-15 19:42:02 +0400 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-01-15 19:42:02 +0400 |
commit | bd83999264407dd7970736ee3e70a6b39fb19014 (patch) | |
tree | 1a0a0d9bab2b8caf853c301187beb637b0a1af61 /moses/WordLattice.cpp | |
parent | a098550f33dd1eead0e72a98a4822ce924841550 (diff) |
beautify
Diffstat (limited to 'moses/WordLattice.cpp')
-rw-r--r-- | moses/WordLattice.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/moses/WordLattice.cpp b/moses/WordLattice.cpp index 8dfc5879d..ab2a23861 100644 --- a/moses/WordLattice.cpp +++ b/moses/WordLattice.cpp @@ -13,7 +13,7 @@ namespace Moses WordLattice::WordLattice() { UTIL_THROW_IF2(&InputFeature::Instance() == NULL, - "Input feature must be specified"); + "Input feature must be specified"); } size_t WordLattice::GetColumnIncrement(size_t i, size_t j) const @@ -216,9 +216,8 @@ WordLattice::CreateTranslationOptionCollection() const if (StaticData::Instance().GetUseLegacyPT()) { rv = new TranslationOptionCollectionConfusionNet(*this, maxNoTransOptPerCoverage, translationOptionThreshold); - } - else { - rv = new TranslationOptionCollectionLattice(*this, maxNoTransOptPerCoverage, translationOptionThreshold); + } else { + rv = new TranslationOptionCollectionLattice(*this, maxNoTransOptPerCoverage, translationOptionThreshold); } assert(rv); |