From bdb9a22f9145a123a9758b92537719842d5c251e Mon Sep 17 00:00:00 2001
From: "robin.perrotin" <robin.perrotin@lif.univ-mrs.fr>
Date: Mon, 13 Nov 2017 05:27:05 +0100
Subject: [PATCH] .

---
 maca_trans_parser/src/simple_decoder_parser_arc_eager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/maca_trans_parser/src/simple_decoder_parser_arc_eager.c b/maca_trans_parser/src/simple_decoder_parser_arc_eager.c
index 7758368..6e1c379 100644
--- a/maca_trans_parser/src/simple_decoder_parser_arc_eager.c
+++ b/maca_trans_parser/src/simple_decoder_parser_arc_eager.c
@@ -194,12 +194,12 @@ void simple_decoder_parser_arc_eager(context *ctx)
 	  int b3 = respect_buffer_constraint(ctx->partial_mode, c, movement_parser_type(vcode_array[i].class_code), movement_parser_label(vcode_array[i].class_code));
 
 	  if(b1 && b2 && b3){
-      printf("\n*** %f %f %d \n",ScoreTranslation,vcode_array[i].score, i);
+      printf("\n*** %f %f %d %f \n",ScoreTranslation,vcode_array[i].score, i, sumExp);
       if(sumExp + 0.5 < 0){
         printf(" %f %f %d ",ScoreTranslation,vcode_array[i].score, i);
         ScoreTranslation += vcode_array[i].score;
         printf(" %f " ,ScoreTranslation);
-        sumExp = 0.;
+        sumExp = 0;
       }
       if(vcode_array[i].score - ScoreTranslation > 0){
         sumExp += exp(vcode_array[i].score - ScoreTranslation);
-- 
GitLab