From 5980856d6c4b81f654af33e2745bb3cc82f30baf Mon Sep 17 00:00:00 2001
From: Alexis Nasr <alexis.nasr@lif.univ-mrs.fr>
Date: Thu, 18 Jan 2018 21:17:43 +0100
Subject: [PATCH] fixed a bug in feat_fct.c

---
 maca_trans_parser/src/feat_fct.c                | 4 ++--
 maca_trans_parser/src/movements.c               | 2 +-
 maca_trans_parser/src/oracle_parser_arc_eager.c | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/maca_trans_parser/src/feat_fct.c b/maca_trans_parser/src/feat_fct.c
index b056550..45f430b 100644
--- a/maca_trans_parser/src/feat_fct.c
+++ b/maca_trans_parser/src/feat_fct.c
@@ -178,8 +178,8 @@ int b0sf(void *c) {return word_get_label(word_buffer_b0(config_get_buffer((confi
 int b0len(void *c) {
   int len = 0;
   word *w = word_buffer_b0(config_get_buffer((config *) c));
-  if(w->input)
-    len = strlen(w->input);
+  if(w->form)
+    len = strlen(w->form);
   return (len > 7)? 7 : len;
 }
 
diff --git a/maca_trans_parser/src/movements.c b/maca_trans_parser/src/movements.c
index 8622e4a..1107e79 100644
--- a/maca_trans_parser/src/movements.c
+++ b/maca_trans_parser/src/movements.c
@@ -158,7 +158,7 @@ int movement_root(config *c, int movement_code, int root_code)
   s0->is_root = 1;
 
   /*---- ajout 19/12/17 ----------*/
-  word_set_sent_seg(word_buffer_get_word_n(config_get_buffer(c), s0->rspan), 1); 
+  //   word_set_sent_seg(word_buffer_get_word_n(config_get_buffer(c), s0->rspan), 1); 
   /*-----------------------------*/
   stack_pop(config_get_stack(c));
 
diff --git a/maca_trans_parser/src/oracle_parser_arc_eager.c b/maca_trans_parser/src/oracle_parser_arc_eager.c
index e258c93..209e636 100644
--- a/maca_trans_parser/src/oracle_parser_arc_eager.c
+++ b/maca_trans_parser/src/oracle_parser_arc_eager.c
@@ -68,10 +68,10 @@ int oracle_parser_arc_eager(config *c, word_buffer *ref, int root_label)
     }
 
     /* word on the top of the stack is an end of sentence marker */
-    /*      if((word_get_sent_seg(word_buffer_get_word_n(ref, s0_index)) == 1)
+   if((word_get_sent_seg(word_buffer_get_word_n(ref, s0_index)) == 1)
        && (word_get_sent_seg(word_buffer_get_word_n(config_get_buffer(c), s0_index)) != 1)){
       return MVT_PARSER_EOS;
-      }*/
+      }
 
     /* LEFT ARC  b0 is the governor and s0 the dependent */
     if(s0_gov_index == b0_index){
-- 
GitLab