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>2014-04-11 13:22:03 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-04-11 13:22:03 +0400
commit9644a308587689906c7eb630c0a8a425e43dd282 (patch)
treeea60f5a15f049fcb42f0e21339098ebb828656a1 /moses/Phrase.h
parent1686686e65e861d257de9d8dfaea3b1db1ac1081 (diff)
add FF RuleAmbiguity
Diffstat (limited to 'moses/Phrase.h')
-rw-r--r--moses/Phrase.h8
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];