diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-04-28 21:18:38 +0400 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-04-28 21:18:38 +0400 |
commit | 20381cbf8996ea46d32c470c8580a68eda4ec64e (patch) | |
tree | b925ad630058c7f642f20af534829ccac2decaa2 /moses/Phrase.h | |
parent | 03825e3ffdd1042ba02a64981ebb2e4c731ef153 (diff) | |
parent | 6182750b7077f226f2eb96a8b5b97be72d274c74 (diff) |
merged master into dynamic-models and solved conflicts
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 15723d5a8..6b36a203c 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]; |