Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2013-12-07 04:21:06 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-12-07 04:21:06 +0400
commitba209202efa9fbb410078fdc7efc5b52827fc600 (patch)
treef52ccfb03989e37fe301202876af8f5661f7bd63 /moses/TranslationOptionCollectionConfusionNet.cpp
parenta5d0296699c7b4214ea897b36de299ca91d7c729 (diff)
move all feature functions out of StaticData
Diffstat (limited to 'moses/TranslationOptionCollectionConfusionNet.cpp')
-rw-r--r--moses/TranslationOptionCollectionConfusionNet.cpp5
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);