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 <hieu@hoang.co.uk>2014-05-16 19:16:20 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-05-16 19:16:20 +0400
commit65a1e176e5a65bf172894eb919729a7449c03a45 (patch)
treedd567ed63e43b23b27e2f1639b2a0ea229f303ac /moses/Phrase.h
parent1e96ffcf3dd1a2117526a8fbc12dcc3bcff75b77 (diff)
bugs in FF MaxSpanFreeNonTermSource
Diffstat (limited to 'moses/Phrase.h')
-rw-r--r--moses/Phrase.h2
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