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/ChartParser.cpp | |
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/ChartParser.cpp')
-rw-r--r-- | moses/ChartParser.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/moses/ChartParser.cpp b/moses/ChartParser.cpp index 50404aaca..a79e1bc68 100644 --- a/moses/ChartParser.cpp +++ b/moses/ChartParser.cpp @@ -100,7 +100,6 @@ void ChartParserUnknown::Process(const Word &sourceWord, const WordsRange &range targetPhrase->GetScoreBreakdown().Assign(&unknownWordPenaltyProducer, unknownScore); targetPhrase->EvaluateInIsolation(*unksrc); - targetPhrase->SetTargetLHS(targetLHS); targetPhrase->SetAlignmentInfo("0-0"); if (staticData.IsDetailedTreeFragmentsTranslationReportingEnabled() || staticData.PrintNBestTrees() || staticData.GetTreeStructure() != NULL) { |