diff options
author | Phil Williams <philip.williams@mac.com> | 2014-11-04 16:13:56 +0300 |
---|---|---|
committer | Phil Williams <philip.williams@mac.com> | 2014-11-04 16:13:56 +0300 |
commit | 5240c430cec0f78b4f14abd8b86da3764fea842c (patch) | |
tree | 3f37b70417a920a25c425ad025348b6115204122 /moses/FF/PhrasePenalty.h | |
parent | e0b3105fc055982b8d38783d7d016535ff861718 (diff) |
Merge s2t branch
This adds a new string-to-tree decoder, which can be enabled with the -s2t
option. It's intended to be faster and simpler than the generic chart
decoder, and is designed to support lattice input (still WIP). For a en-de
system trained on WMT14 data, it's approximately 40% faster in practice.
For background information, see the decoding section of the EMNLP tutorial
on syntax-based MT:
http://www.emnlp2014.org/tutorials/5_notes.pdf
Some features are not implemented yet, including support for internal tree
structure and soft source-syntactic constraints.
Diffstat (limited to 'moses/FF/PhrasePenalty.h')
-rw-r--r-- | moses/FF/PhrasePenalty.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/FF/PhrasePenalty.h b/moses/FF/PhrasePenalty.h index b15a80224..80635b4e1 100644 --- a/moses/FF/PhrasePenalty.h +++ b/moses/FF/PhrasePenalty.h @@ -25,6 +25,9 @@ public: void EvaluateWhenApplied(const ChartHypothesis &hypo, ScoreComponentCollection* accumulator) const {} + void EvaluateWhenApplied(const Syntax::SHyperedge &hyperedge, + ScoreComponentCollection* accumulator) const + {} void EvaluateWithSourceContext(const InputType &input , const InputPath &inputPath |