diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-12-07 04:21:06 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-12-07 04:21:06 +0400 |
commit | ba209202efa9fbb410078fdc7efc5b52827fc600 (patch) | |
tree | f52ccfb03989e37fe301202876af8f5661f7bd63 /moses/TranslationOptionCollectionConfusionNet.cpp | |
parent | a5d0296699c7b4214ea897b36de299ca91d7c729 (diff) |
move all feature functions out of StaticData
Diffstat (limited to 'moses/TranslationOptionCollectionConfusionNet.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionConfusionNet.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/moses/TranslationOptionCollectionConfusionNet.cpp b/moses/TranslationOptionCollectionConfusionNet.cpp index a324fe697..2615d296b 100644 --- a/moses/TranslationOptionCollectionConfusionNet.cpp +++ b/moses/TranslationOptionCollectionConfusionNet.cpp @@ -22,9 +22,8 @@ TranslationOptionCollectionConfusionNet::TranslationOptionCollectionConfusionNet , size_t maxNoTransOptPerCoverage, float translationOptionThreshold) : TranslationOptionCollection(input, maxNoTransOptPerCoverage, translationOptionThreshold) { - const InputFeature *inputFeature = StaticData::Instance().GetInputFeature(); - UTIL_THROW_IF2(inputFeature == NULL, - "Input feature must be specified"); + const InputFeature &inputFeature = InputFeature::Instance(); + UTIL_THROW_IF2(&inputFeature == NULL, "Input feature must be specified"); size_t inputSize = input.GetSize(); m_inputPathMatrix.resize(inputSize); |