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

added maca_check_projectivity that computes the ratio of non projective dependencies in a mcf file

parent 256e0277
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,12 @@ target_link_libraries(transparse perceptron) ...@@ -43,6 +43,12 @@ target_link_libraries(transparse perceptron)
#target_link_libraries(maca_trans_parser_nn maca_common) #target_link_libraries(maca_trans_parser_nn maca_common)
#install (TARGETS maca_trans_parser_nn DESTINATION bin) #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) 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 perceptron)
target_link_libraries(maca_trans_lemmatizer_mcf2cff transparse) target_link_libraries(maca_trans_lemmatizer_mcf2cff transparse)
......
...@@ -84,6 +84,7 @@ int movement_right_arc_undo(config *c) ...@@ -84,6 +84,7 @@ int movement_right_arc_undo(config *c)
int movement_ignore(config *c, int movement_code) int movement_ignore(config *c, int movement_code)
{ {
if(word_buffer_end(config_get_buffer(c))) return 0; 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); config_push_mvt(c, movement_code, b0, NULL);
word_buffer_move_right(config_get_buffer(c)); word_buffer_move_right(config_get_buffer(c));
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment