diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-17 18:37:41 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-17 18:37:41 +0300 |
commit | 7a85126a926c4ffdbd0a956b3b4cec07eea33ed2 (patch) | |
tree | 9a93c64931a8dcbf5ecb42372369b72627552b36 /moses/TranslationOptionCollectionLattice.cpp | |
parent | a41027fb1d233b6bd303c3f6fbd53fe17e1e3d52 (diff) | |
parent | ecbe68e6f87814134859d64e826bac9c56a4a15e (diff) |
Merge branch 'master' of http://github.com/moses-smt/mosesdecoder into ranked-sampling
Diffstat (limited to 'moses/TranslationOptionCollectionLattice.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionLattice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TranslationOptionCollectionLattice.cpp b/moses/TranslationOptionCollectionLattice.cpp index 7fadc2542..b43ef81df 100644 --- a/moses/TranslationOptionCollectionLattice.cpp +++ b/moses/TranslationOptionCollectionLattice.cpp @@ -28,8 +28,8 @@ TranslationOptionCollectionLattice UTIL_THROW_IF2(StaticData::Instance().GetUseLegacyPT(), "Not for models using the legqacy binary phrase table"); - const InputFeature &inputFeature = InputFeature::Instance(); - UTIL_THROW_IF2(&inputFeature == NULL, "Input feature must be specified"); + const InputFeature *inputFeature = InputFeature::InstancePtr(); + UTIL_THROW_IF2(inputFeature == NULL, "Input feature must be specified"); size_t maxPhraseLength = StaticData::Instance().GetMaxPhraseLength(); size_t size = input.GetSize(); |