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

.

parent a4516ec0
No related branches found
No related tags found
No related merge requests found
...@@ -151,10 +151,10 @@ void simple_decoder_parser_arc_eager(context *ctx) ...@@ -151,10 +151,10 @@ void simple_decoder_parser_arc_eager(context *ctx)
int index; int index;
float score; float score;
double sumExp = 0; double sumExp;
double currentSumExp = 0; double currentSumExp;
double ScoreTranslation = -10; double ScoreTranslation;
int FlagNotInitExp = 1; int FlagNotInitExp;
word* word_scored; word* word_scored;
...@@ -164,6 +164,11 @@ void simple_decoder_parser_arc_eager(context *ctx) ...@@ -164,6 +164,11 @@ void simple_decoder_parser_arc_eager(context *ctx)
c = config_new(f, ctx->mcd_struct, 5); c = config_new(f, ctx->mcd_struct, 5);
while(!config_is_terminal(c)){ while(!config_is_terminal(c)){
sumExp = 0;
currentSumExp = 0;
ScoreTranslation = -10;
FlagNotInitExp = 1;
if(ctx->debug_mode){ if(ctx->debug_mode){
fprintf(stdout, "***********************************\n"); fprintf(stdout, "***********************************\n");
config_print(stdout, c); config_print(stdout, c);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment