Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexis Nasr
macaon2
Commits
2bfa72cb
Commit
2bfa72cb
authored
Jan 15, 2018
by
Alexis Nasr
Browse files
removed EOS action
parent
fa380ae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
maca_trans_parser/src/oracle_parser_arc_eager.c
View file @
2bfa72cb
...
...
@@ -61,18 +61,18 @@ int oracle_parser_arc_eager(config *c, word_buffer *ref, int root_label)
printf("dans ref gov de b0 (%d) = %d\n", b0_index, b0_gov_index);*/
/* s0 is the root of the sentence */
if
((
s0_label
==
root_label
)
/*
if((s0_label == root_label)
&& check_all_dependents_of_word_in_ref_are_in_hyp(c, ref, s0_index)
){
return MVT_PARSER_ROOT;
}
}*/
/* 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
){
return
movement_parser_left_code
(
word_get_label
(
word_buffer_get_word_n
(
ref
,
s0_index
)));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment