diff options
author | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2007-05-16 16:52:49 +0400 |
---|---|---|
committer | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2007-05-16 16:52:49 +0400 |
commit | b5d97c620e9a0b2947b3f85f35107baa5c9f02fa (patch) | |
tree | 43da76d34b8a72c72eebbdf42a1c863c3d81c230 /moses-cmd | |
parent | 5c6e4850fc6fc6e582bf6561128b015ed56d5320 (diff) |
code tidy up
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1388 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses-cmd')
-rw-r--r-- | moses-cmd/src/mbr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses-cmd/src/mbr.cpp b/moses-cmd/src/mbr.cpp index 625174a70..b89a90f67 100644 --- a/moses-cmd/src/mbr.cpp +++ b/moses-cmd/src/mbr.cpp @@ -114,7 +114,7 @@ vector<const Factor*> doMBR(const LatticePathList& nBestList){ for (iter = nBestList.begin() ; iter != nBestList.end() ; ++iter) { const LatticePath &path = **iter; - joint_prob = UntransformScore(path.GetScoreBreakdown().InnerProduct(StaticData::Instance().GetAllWeights(),StaticData::Instance().GetMBRScale())); + joint_prob = UntransformScore(StaticData::Instance().GetMBRScale() * path.GetScoreBreakdown().InnerProduct(StaticData::Instance().GetAllWeights())); marginal += joint_prob; joint_prob_vec.push_back(joint_prob); //Cache ngram counts |