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:
authorChristian Federmann <cfedermann@dfki.de>2012-05-10 16:48:51 +0400
committerChristian Federmann <cfedermann@dfki.de>2012-05-10 16:48:51 +0400
commit4ccab958085426fa9cd60f24fea26272844140ef (patch)
tree35e78e722718e7c088ebeb010e539ada71dfd752 /moses-chart-cmd
parent4448df377b70c61a75c731390d042ded80ba08ed (diff)
Merged in fixes for compiler warnings regarding comparing signed and unsigned integer expressions.
Diffstat (limited to 'moses-chart-cmd')
-rw-r--r--moses-chart-cmd/src/mbr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses-chart-cmd/src/mbr.cpp b/moses-chart-cmd/src/mbr.cpp
index 633a518b8..1b1b49d39 100644
--- a/moses-chart-cmd/src/mbr.cpp
+++ b/moses-chart-cmd/src/mbr.cpp
@@ -130,9 +130,9 @@ vector<const Factor*> doMBR(const TrellisPathList& nBestList)
int minMBRLossIdx = -1;
/* Main MBR computation done here */
- for (int i = 0; i < nBestList.GetSize(); i++) {
+ for (size_t i = 0; i < nBestList.GetSize(); i++) {
weightedLossCumul = 0;
- for (int j = 0; j < nBestList.GetSize(); j++) {
+ for (size_t j = 0; j < nBestList.GetSize(); j++) {
if ( i != j) {
bleu = calculate_score(translations, j, i,ngram_stats );
weightedLoss = ( 1 - bleu) * ( joint_prob_vec[j]/marginal);