diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-02 20:44:19 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-02 20:44:19 +0400 |
commit | ba54ee6748247c3a4ab5dde69febc7a3f90457cf (patch) | |
tree | 164924bd5d28f25c2029e7b3570b2a11b3e09913 /moses/XmlOption.cpp | |
parent | bdebc477c5c62ccab4d873faa4cc95ca6592ac93 (diff) |
delete another TargetPhrase::SetScore()
Diffstat (limited to 'moses/XmlOption.cpp')
-rw-r--r-- | moses/XmlOption.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/moses/XmlOption.cpp b/moses/XmlOption.cpp index a5eba0f40..abad5fee9 100644 --- a/moses/XmlOption.cpp +++ b/moses/XmlOption.cpp @@ -343,11 +343,8 @@ bool ProcessAndStripXMLTags(string &line, vector<XmlOption*> &res, ReorderingCon TargetPhrase targetPhrase; targetPhrase.CreateFromString(Output, outputFactorOrder,altTexts[i],factorDelimiter); - targetPhrase.SetScore(scoreValue); - - vector<float> wp(1, - targetPhrase.GetSize()); - targetPhrase.SetScore(StaticData::Instance().GetWordPenaltyProducer() , wp); - // TODO: targetPhrase.SetSourcePhrase() ? + targetPhrase.SetXMLScore(scoreValue); + targetPhrase.Evaluate(); XmlOption *option = new XmlOption(range,targetPhrase); CHECK(option); |