Skip to content
Snippets Groups Projects
Commit 592d9ddf authored by Alexis Nasr's avatar Alexis Nasr
Browse files

Merge branch 'master' of gitlab.lif.univ-mrs.fr:alexis.nasr/macaon2

parents 1932d676 5980856d
No related branches found
No related tags found
No related merge requests found
...@@ -178,8 +178,8 @@ int b0sf(void *c) {return word_get_label(word_buffer_b0(config_get_buffer((confi ...@@ -178,8 +178,8 @@ int b0sf(void *c) {return word_get_label(word_buffer_b0(config_get_buffer((confi
int b0len(void *c) { int b0len(void *c) {
int len = 0; int len = 0;
word *w = word_buffer_b0(config_get_buffer((config *) c)); word *w = word_buffer_b0(config_get_buffer((config *) c));
if(w->input) if(w->form)
len = strlen(w->input); len = strlen(w->form);
return (len > 7)? 7 : len; return (len > 7)? 7 : len;
} }
......
...@@ -158,7 +158,7 @@ int movement_root(config *c, int movement_code, int root_code) ...@@ -158,7 +158,7 @@ int movement_root(config *c, int movement_code, int root_code)
s0->is_root = 1; s0->is_root = 1;
/*---- ajout 19/12/17 ----------*/ /*---- 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)); stack_pop(config_get_stack(c));
......
...@@ -72,7 +72,6 @@ int oracle_parser_arc_eager(config *c, word_buffer *ref, int root_label) ...@@ -72,7 +72,6 @@ int oracle_parser_arc_eager(config *c, word_buffer *ref, int root_label)
&& (word_get_sent_seg(word_buffer_get_word_n(config_get_buffer(c), s0_index)) != 1)){ && (word_get_sent_seg(word_buffer_get_word_n(config_get_buffer(c), s0_index)) != 1)){
return MVT_PARSER_EOS; return MVT_PARSER_EOS;
} }
/* LEFT ARC b0 is the governor and s0 the dependent */ /* LEFT ARC b0 is the governor and s0 the dependent */
if(s0_gov_index == b0_index){ if(s0_gov_index == b0_index){
return movement_parser_left_code(word_get_label(word_buffer_get_word_n(ref, s0_index))); return movement_parser_left_code(word_get_label(word_buffer_get_word_n(ref, s0_index)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment