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-02 18:54:49 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-02 18:54:49 +0400
commit0596c3e9e47301303c07e1b7d44e671f4c227423 (patch)
treee81a4df739467c849d60cf8842268b850a63098c /moses/InputPath.h
parentd1d07d5923c03c3c6b7d7ac9cb6745c91f83be08 (diff)
Add NonTerminalSet variable to InputPath
Diffstat (limited to 'moses/InputPath.h')
-rw-r--r--moses/InputPath.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/moses/InputPath.h b/moses/InputPath.h
index 7997cfe5f..c6d022c9e 100644
--- a/moses/InputPath.h
+++ b/moses/InputPath.h
@@ -5,6 +5,7 @@
#include <list>
#include "Phrase.h"
#include "WordsRange.h"
+#include "NonTerminal.h"
namespace Moses
{
@@ -33,6 +34,7 @@ protected:
WordsRange m_range;
const ScoreComponentCollection *m_inputScore;
std::map<const PhraseDictionary*, std::pair<const TargetPhraseCollection*, const void*> > m_targetPhrases;
+ const NonTerminalSet m_sourceNonTerms;
std::vector<size_t> m_placeholders;
@@ -44,13 +46,16 @@ public:
, m_inputScore(NULL) {
}
- InputPath(const Phrase &phrase, const WordsRange &range, const InputPath *prevNode
+ InputPath(const Phrase &phrase, const NonTerminalSet &sourceNonTerms, const WordsRange &range, const InputPath *prevNode
,const ScoreComponentCollection *inputScore);
~InputPath();
const Phrase &GetPhrase() const {
return m_phrase;
}
+ const NonTerminalSet &GetNonTerminalSet() const {
+ return m_sourceNonTerms;
+ }
const WordsRange &GetWordsRange() const {
return m_range;
}