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-05-02 20:44:19 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-05-02 20:44:19 +0400
commitba54ee6748247c3a4ab5dde69febc7a3f90457cf (patch)
tree164924bd5d28f25c2029e7b3570b2a11b3e09913 /moses/TreeInput.cpp
parentbdebc477c5c62ccab4d873faa4cc95ca6592ac93 (diff)
delete another TargetPhrase::SetScore()
Diffstat (limited to 'moses/TreeInput.cpp')
-rw-r--r--moses/TreeInput.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/TreeInput.cpp b/moses/TreeInput.cpp
index 83fb7c00f..8130cad29 100644
--- a/moses/TreeInput.cpp
+++ b/moses/TreeInput.cpp
@@ -193,7 +193,8 @@ bool TreeInput::ProcessAndStripXMLTags(string &line, std::vector<XMLParseOutput>
}
// convert from prob to log-prob
float scoreValue = FloorScore(TransformScore(probValue));
- targetPhrase.SetScore(scoreValue);
+ targetPhrase.SetXMLScore(scoreValue);
+ targetPhrase.Evaluate();
// set span and create XmlOption
WordsRange range(startPos+1,endPos);