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>2013-07-07 05:14:51 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-07-07 05:14:51 +0400
commit29b895a97a0b7016e6afe8fa9cb2d232fec766a1 (patch)
treea4e70d25ac4d7ff9ab02dfecdbed3f756e6c71cf /moses/InputPath.h
parentecef376aedf046932d0697fa20a873db841e1a94 (diff)
InputLatticeNode to InputPath
Diffstat (limited to 'moses/InputPath.h')
-rw-r--r--moses/InputPath.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/moses/InputPath.h b/moses/InputPath.h
index 3aa0a2ac0..1ee0c9348 100644
--- a/moses/InputPath.h
+++ b/moses/InputPath.h
@@ -14,26 +14,26 @@ class TargetPhraseCollection;
/** Each node contains
1. substring used to searching the phrase table
2. the source range it covers
-3. a list of InputLatticeNode that it is a prefix of
+3. a list of InputPath that it is a prefix of
This is for both sentence input, and confusion network/lattices
*/
-class InputLatticeNode
+class InputPath
{
- friend std::ostream& operator<<(std::ostream& out, const InputLatticeNode &obj);
+ friend std::ostream& operator<<(std::ostream& out, const InputPath &obj);
protected:
- const InputLatticeNode *m_prevNode;
+ const InputPath *m_prevNode;
Phrase m_phrase;
WordsRange m_range;
std::map<const PhraseDictionary*, std::pair<const TargetPhraseCollection*, const void*> > m_targetPhrases;
public:
- explicit InputLatticeNode()
+ explicit InputPath()
: m_prevNode(NULL)
, m_range(NOT_FOUND, NOT_FOUND) {
}
- InputLatticeNode(const Phrase &phrase, const WordsRange &range, const InputLatticeNode *prevNode)
+ InputPath(const Phrase &phrase, const WordsRange &range, const InputPath *prevNode)
:m_prevNode(prevNode)
,m_phrase(phrase)
,m_range(range) {
@@ -45,7 +45,7 @@ public:
const WordsRange &GetWordsRange() const {
return m_range;
}
- const InputLatticeNode *GetPrevNode() const {
+ const InputPath *GetPrevNode() const {
return m_prevNode;
}