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.h
parent7a808a2edb5ce9304a2d6dd043188c64a1f23b46 (diff)
source phrase is a pointer in translation options.
Diffstat (limited to 'moses/Search.h')
-rw-r--r--moses/Search.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/moses/Search.h b/moses/Search.h
index ed1775fe4..71f70e243 100644
--- a/moses/Search.h
+++ b/moses/Search.h
@@ -3,6 +3,8 @@
#include <vector>
#include "TypeDef.h"
+#include "TranslationOption.h"
+#include "Phrase.h"
namespace Moses
{
@@ -29,7 +31,7 @@ public:
//! Decode the sentence according to the specified search algorithm.
virtual void ProcessSentence() = 0;
- explicit Search(Manager& manager) : m_manager(manager) {}
+ explicit Search(Manager& manager);
virtual ~Search() {}
// Factory method
@@ -39,6 +41,8 @@ public:
protected:
const Phrase *m_constraint;
Manager& m_manager;
+ Phrase m_sourcePhrase; // for initial hypo
+ TranslationOption m_initialTransOpt; /**< used to seed 1st hypo */
};
}