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>2013-04-26 15:20:49 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-04-26 15:20:49 +0400
commitb448c6285a5e7cb45549dc11d77969a695a969cd (patch)
tree3b48c48c3cd5f330a46562e0fdab1aebbc5273b7 /moses/Phrase.h
parent75c85acd5e81e741345a41371010b25769b9f4b2 (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.h4
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) {