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
7af41f41
Commit
7af41f41
authored
Feb 20, 2018
by
Alexis Nasr
Browse files
added maca_check_projectivity that computes the ratio of non projective dependencies in a mcf file
parent
256e0277
Changes
3
Hide whitespace changes
Inline
Side-by-side
maca_trans_parser/CMakeLists.txt
View file @
7af41f41
...
...
@@ -43,6 +43,12 @@ target_link_libraries(transparse perceptron)
#target_link_libraries(maca_trans_parser_nn maca_common)
#install (TARGETS maca_trans_parser_nn DESTINATION bin)
add_executable
(
maca_check_projectivity ./src/maca_check_projectivity.c
)
target_link_libraries
(
maca_check_projectivity perceptron
)
target_link_libraries
(
maca_check_projectivity transparse
)
target_link_libraries
(
maca_check_projectivity maca_common
)
install
(
TARGETS maca_check_projectivity DESTINATION bin
)
add_executable
(
maca_trans_lemmatizer_mcf2cff ./src/maca_trans_lemmatizer_mcf2cff.c
)
target_link_libraries
(
maca_trans_lemmatizer_mcf2cff perceptron
)
target_link_libraries
(
maca_trans_lemmatizer_mcf2cff transparse
)
...
...
maca_trans_parser/src/movements.c
View file @
7af41f41
...
...
@@ -84,6 +84,7 @@ int movement_right_arc_undo(config *c)
int
movement_ignore
(
config
*
c
,
int
movement_code
)
{
if
(
word_buffer_end
(
config_get_buffer
(
c
)))
return
0
;
word
*
b0
=
word_buffer_b0
(
config_get_buffer
(
c
));
config_push_mvt
(
c
,
movement_code
,
b0
,
NULL
);
word_buffer_move_right
(
config_get_buffer
(
c
));
return
1
;
...
...
maca_trans_parser/src/oracle_parser_arc_eager.c
View file @
7af41f41
...
...
@@ -59,7 +59,7 @@ int oracle_parser_arc_eager(config *c, word_buffer *ref, int root_label)
/* printf("s0_index = %d b0_index = %d\n", s0_index, b0_index);
printf("dans ref gov de s0 (%d) = %d\n", s0_index, s0_gov_index);
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
)
// && (word_get_label(word_buffer_get_word_n(config_get_buffer(c), s0_index)) != root_label)
...
...
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