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 <hieu@hoang.co.uk>2013-08-07 13:28:28 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-07 13:28:28 +0400
commit66d4c2b0be0a41bb7eca5734913add627a193b7b (patch)
treee3cc5724da69172f8a1d8118216790c89988529e /moses/Search.cpp
parent7a808a2edb5ce9304a2d6dd043188c64a1f23b46 (diff)
source phrase is a pointer in translation options.
Diffstat (limited to 'moses/Search.cpp')
-rw-r--r--moses/Search.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/moses/Search.cpp b/moses/Search.cpp
index bfeec677b..d3403461b 100644
--- a/moses/Search.cpp
+++ b/moses/Search.cpp
@@ -7,6 +7,15 @@
namespace Moses
{
+Search::Search(Manager& manager)
+: m_manager(manager)
+,m_sourcePhrase(0)
+,m_initialTransOpt()
+{
+ m_initialTransOpt.SetSourcePhrase(m_sourcePhrase);
+}
+
+
Search *Search::CreateSearch(Manager& manager, const InputType &source,
SearchAlgorithm searchAlgorithm, const TranslationOptionCollection &transOptColl)
{