diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-04-11 13:22:03 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-04-11 13:22:03 +0400 |
commit | 9644a308587689906c7eb630c0a8a425e43dd282 (patch) | |
tree | ea60f5a15f049fcb42f0e21339098ebb828656a1 /moses/Phrase.h | |
parent | 1686686e65e861d257de9d8dfaea3b1db1ac1081 (diff) |
add FF RuleAmbiguity
Diffstat (limited to 'moses/Phrase.h')
-rw-r--r-- | moses/Phrase.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/moses/Phrase.h b/moses/Phrase.h index 1de00bfdf..55fb2bdf5 100644 --- a/moses/Phrase.h +++ b/moses/Phrase.h @@ -121,6 +121,14 @@ public: return m_words[GetSize() - 1]; } + inline const Word &Front() const { + return m_words[0]; + } + + inline const Word &Back() const { + return m_words[GetSize() - 1]; + } + //! particular factor at a particular position inline const Factor *GetFactor(size_t pos, FactorType factorType) const { const Word &ptr = m_words[pos]; |