diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-26 15:20:49 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-26 15:20:49 +0400 |
commit | b448c6285a5e7cb45549dc11d77969a695a969cd (patch) | |
tree | 3b48c48c3cd5f330a46562e0fdab1aebbc5273b7 /moses/Phrase.h | |
parent | 75c85acd5e81e741345a41371010b25769b9f4b2 (diff) |
make scfg work with factored input. Strip factors from source that are not part of phrase-table input factors
Diffstat (limited to 'moses/Phrase.h')
-rw-r--r-- | moses/Phrase.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/moses/Phrase.h b/moses/Phrase.h index d514a37ff..b0c1520d1 100644 --- a/moses/Phrase.h +++ b/moses/Phrase.h @@ -39,6 +39,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA namespace Moses { +class FactorMask; /** Representation of a phrase, ie. a contiguous number of words. * Wrapper for vector of words @@ -166,6 +167,9 @@ public: { return Compare(compare) == 0; } + + void OnlyTheseFactors(const FactorMask &factors); + }; inline size_t hash_value(const Phrase& phrase) { |