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
......@@ -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)
......@@ -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);
return 1;
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment