Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexis Nasr
macaon2
Commits
d8892b07
Commit
d8892b07
authored
7 years ago
by
Alexis Nasr
Browse files
Options
Downloads
Patches
Plain Diff
fixed a bug oracle_parser_arc_eager
parent
0d6b8af7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
maca_trans_parser/src/oracle_parser_arc_eager.c
+1
-1
1 addition, 1 deletion
maca_trans_parser/src/oracle_parser_arc_eager.c
with
1 addition
and
1 deletion
maca_trans_parser/src/oracle_parser_arc_eager.c
+
1
−
1
View file @
d8892b07
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment