From 4d2a9550076763701418843513a7674c6aa80a4a Mon Sep 17 00:00:00 2001 From: Alexis Nasr <alexis.nasr@lif.univ-mrs.fr> Date: Mon, 27 Jun 2016 14:45:42 -0400 Subject: [PATCH] fixed minor details --- maca_trans_parser/src/decode.c | 3 --- maca_trans_parser/src/movement.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/maca_trans_parser/src/decode.c b/maca_trans_parser/src/decode.c index 9102962..909f923 100644 --- a/maca_trans_parser/src/decode.c +++ b/maca_trans_parser/src/decode.c @@ -62,12 +62,9 @@ int main(int argc, char *argv[]) return 1; } - ctx->mvt_nb = ctx->dico_labels->nbelem * 2 + 1; root_label = dico_string2int(ctx->dico_labels, (char *)"root"); - - if(root_label == -1) root_label = 0; /* when in stream mode, force to renumber the tokens (ugly !) */ diff --git a/maca_trans_parser/src/movement.c b/maca_trans_parser/src/movement.c index 7afb7aa..288db3f 100644 --- a/maca_trans_parser/src/movement.c +++ b/maca_trans_parser/src/movement.c @@ -114,7 +114,7 @@ int movement_shift(config *c, int stream, float score) stack_push(c->st, queue_remove(c->bf)); - config_add_mvt(c, 0); + config_add_mvt(c, MVT_SHIFT); if(stream) config_add_next_word_to_buffer(c); return 1; -- GitLab