Skip to content
Snippets Groups Projects
Commit 07b1eb8a authored by robin.perrotin's avatar robin.perrotin
Browse files

parser probabiliste

parent ab86966d
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,7 @@ void simple_decoder_parser_arc_eager(context *ctx) ...@@ -189,7 +189,7 @@ void simple_decoder_parser_arc_eager(context *ctx)
int b1 = respect_standard_constraint(c, movement_parser_type(vcode_array[i].class_code), movement_parser_label(vcode_array[i].class_code)); int b1 = respect_standard_constraint(c, movement_parser_type(vcode_array[i].class_code), movement_parser_label(vcode_array[i].class_code));
int b2 = respect_stack_constraint(ctx->partial_mode, c, movement_parser_type(vcode_array[i].class_code), movement_parser_label(vcode_array[i].class_code)); int b2 = respect_stack_constraint(ctx->partial_mode, c, movement_parser_type(vcode_array[i].class_code), movement_parser_label(vcode_array[i].class_code));
int b3 = respect_buffer_constraint(ctx->partial_mode, c, movement_parser_type(vcode_array[i].class_code), movement_parser_label(vcode_array[i].class_code)); int b3 = respect_buffer_constraint(ctx->partial_mode, c, movement_parser_type(vcode_array[i].class_code), movement_parser_label(vcode_array[i].class_code));
printf(" %f ",exp(vcode_array[i].score));
if(b1 && b2 && b3) if(b1 && b2 && b3)
printf("\t<----"); printf("\t<----");
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment