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:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2014-06-03 21:55:53 +0400
committerUlrich Germann <ugermann@inf.ed.ac.uk>2014-06-03 21:55:53 +0400
commit9c27dc08e982b29a6518125f01e1c54888d76717 (patch)
tree243e0d09bdb4ce8c7024a2d5877d96a6258c1001 /moses/Phrase.h
parent9cda39f8028fb57a86ddc59a03c10dd86aebb1bd (diff)
parent346a8f41b0318b3d4c2b9878e09da755c07b7ee6 (diff)
Merge branch 'master' of https://github.com/moses-smt/mosesdecoder
Conflicts: moses/FF/ConstrainedDecoding.cpp
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 1473830fc..4a5c4828a 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