diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2014-05-16 19:16:20 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2014-05-16 19:16:20 +0400 |
commit | 65a1e176e5a65bf172894eb919729a7449c03a45 (patch) | |
tree | dd567ed63e43b23b27e2f1639b2a0ea229f303ac /moses/Phrase.h | |
parent | 1e96ffcf3dd1a2117526a8fbc12dcc3bcff75b77 (diff) |
bugs in FF MaxSpanFreeNonTermSource
Diffstat (limited to 'moses/Phrase.h')
-rw-r--r-- | moses/Phrase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/Phrase.h b/moses/Phrase.h index 55fb2bdf5..ad0b304bd 100644 --- a/moses/Phrase.h +++ b/moses/Phrase.h @@ -140,6 +140,8 @@ public: } size_t GetNumTerminals() const; + size_t GetNumNonTerminals() const + { return GetSize() - GetNumTerminals(); } //! whether the 2D vector is a substring of this phrase bool Contains(const std::vector< std::vector<std::string> > &subPhraseVector |