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>2015-01-02 21:40:15 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-01-02 21:40:15 +0300
commit0552a79b1e0c163d9adc042a5f83cdfdc1d20f84 (patch)
tree91150f79d0a7232ff4f501709d98017d91d21e06 /moses/Manager.cpp
parent1ff52ebb0ec1acf8085e93622721dbb8fc7bff7d (diff)
consistent constructor for all managers
Diffstat (limited to 'moses/Manager.cpp')
-rw-r--r--moses/Manager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/moses/Manager.cpp b/moses/Manager.cpp
index 737783b55..90d120920 100644
--- a/moses/Manager.cpp
+++ b/moses/Manager.cpp
@@ -59,13 +59,16 @@ using namespace std;
namespace Moses
{
-Manager::Manager(InputType const& source, SearchAlgorithm searchAlgorithm)
+Manager::Manager(InputType const& source)
:BaseManager(source)
,m_transOptColl(source.CreateTranslationOptionCollection())
- ,m_search(Search::CreateSearch(*this, source, searchAlgorithm, *m_transOptColl))
,interrupted_flag(0)
,m_hypoId(0)
{
+ const StaticData &staticData = StaticData::Instance();
+ SearchAlgorithm searchAlgorithm = staticData.GetSearchAlgorithm();
+ m_search = Search::CreateSearch(*this, source, searchAlgorithm, *m_transOptColl);
+
StaticData::Instance().InitializeForInput(m_source);
}