diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-06-08 11:39:37 +0400 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-06-08 11:39:37 +0400 |
commit | 4d75c889f1e2fe3dd063525bdbbe516a9d71f579 (patch) | |
tree | 6189406cc715a87399b2772efb9321d75b5425cc /moses/Phrase.h | |
parent | c47d956e4c394653bb03bf539a5b42a1f600e40c (diff) | |
parent | 76859cf37ba317b21135d8e5face90b9505bf45f (diff) |
merged master into dynamic-models
Diffstat (limited to 'moses/Phrase.h')
-rw-r--r-- | moses/Phrase.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/moses/Phrase.h b/moses/Phrase.h index 6b36a203c..d19cdc651 100644 --- a/moses/Phrase.h +++ b/moses/Phrase.h @@ -81,7 +81,7 @@ public: void CreateFromString(FactorDirection direction , const std::vector<FactorType> &factorOrder , const StringPiece &phraseString - , const StringPiece &factorDelimiter + // , const StringPiece &factorDelimiter // never used [UG] , Word **lhs); /** copy factors from the other phrase to this phrase. @@ -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 |