diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-08-05 04:15:34 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-08-05 04:15:34 +0300 |
commit | 3323a027278d099332a184971fc2c370ebceb2ca (patch) | |
tree | 8d9387a3590d2533448c58f4d01f07e5ec969970 /moses/ConfusionNet.cpp | |
parent | fc10ad4afb812200d7529256797a10438cfaf1f3 (diff) |
Option reorganisation in StaticData.
Diffstat (limited to 'moses/ConfusionNet.cpp')
-rw-r--r-- | moses/ConfusionNet.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/moses/ConfusionNet.cpp b/moses/ConfusionNet.cpp index 0c355fd94..d9f92cd47 100644 --- a/moses/ConfusionNet.cpp +++ b/moses/ConfusionNet.cpp @@ -1,3 +1,4 @@ +// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*- // $Id$ #include "ConfusionNet.h" @@ -65,10 +66,10 @@ ConfusionNet() : InputType() { stats.createOne(); - const StaticData& staticData = StaticData::Instance(); - if (staticData.IsSyntax()) { - m_defaultLabelSet.insert(StaticData::Instance().GetInputDefaultNonTerminal()); - } + const StaticData& SD = StaticData::Instance(); + if (is_syntax(SD.GetSearchAlgorithm())) { + m_defaultLabelSet.insert(SD.GetInputDefaultNonTerminal()); + } UTIL_THROW_IF2(&InputFeature::Instance() == NULL, "Input feature must be specified"); } |