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

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

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 c1db96e..984b048 100644
--- a/maca_trans_parser/src/simple_decoder_parser_arc_eager.c
+++ b/maca_trans_parser/src/simple_decoder_parser_arc_eager.c
@@ -194,8 +194,10 @@ 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){
-      if(sumExp < 0.){
+      if(sumExp < -0.5){
+        printf(" %f %f %d ",scoreTranslation,vcode_array[i].score, i);
         ScoreTranslation += vcode_array[i].score;
+        pritnf(" %f " ,scoreTranslation);
         sumExp = 0.;
       }
       if(vcode_array[i].score - ScoreTranslation >= 0){
-- 
GitLab