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-10-26 12:20:08 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-26 12:20:08 +0300
commit52f4086dbc5b5621600d07c3edf9dbca2e8cd38e (patch)
treeee6594d8438364e6e2663eda02bbc6153b13d700 /moses/Search.cpp
parent486990fa3f8ed3150fe40f33f81c3c5ee2ccdd47 (diff)
move m_bitmaps into Search class. Cube pruning uses it too
Diffstat (limited to 'moses/Search.cpp')
-rw-r--r--moses/Search.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/moses/Search.cpp b/moses/Search.cpp
index 010cc6b08..ac2e46343 100644
--- a/moses/Search.cpp
+++ b/moses/Search.cpp
@@ -1,17 +1,20 @@
#include "Manager.h"
#include "SearchCubePruning.h"
#include "SearchNormal.h"
+#include "InputType.h"
#include "util/exception.hh"
namespace Moses
{
-Search::Search(Manager& manager)
+Search::Search(Manager& manager, const InputType &source)
: m_manager(manager)
+ , m_source(source)
, m_inputPath()
, m_initialTransOpt()
, m_options(manager.options())
, interrupted_flag(0)
+ , m_bitmaps(source.GetSize(), source.m_sourceCompleted)
{
m_initialTransOpt.SetInputPath(m_inputPath);
}