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

fixed a bug oracle_parser_arc_eager

parent 0d6b8af7
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ int oracle_parser_arc_eager(config *c, word_buffer *ref, int root_label, int pun ...@@ -65,7 +65,7 @@ int oracle_parser_arc_eager(config *c, word_buffer *ref, int root_label, int pun
/* s0 is the root of the sentence */ /* s0 is the root of the sentence */
if((s0_label == root_label) if((s0_label == root_label)
// && (word_get_label(word_buffer_get_word_n(config_get_buffer(c), s0_index)) != root_label) // && (word_get_label(word_buffer_get_word_n(config_get_buffer(c), s0_index)) != root_label)
&& check_all_dependents_of_word_in_ref_are_in_hyp(c, ref, s0_index) && check_all_dependents_of_word_in_ref_are_in_hyp(c, ref, s0_index, punct_label)
){ ){
return MVT_PARSER_ROOT; return MVT_PARSER_ROOT;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment