Skip to content
Snippets Groups Projects
Commit 1d3ccedd authored by alexis.nasr's avatar alexis.nasr
Browse files

bug fixed in maca_trans_lemmatizer_mcf2cff.c

parent db3b262b
Branches
No related tags found
No related merge requests found
...@@ -72,18 +72,6 @@ void decode_lemmatizer_set_linguistic_resources_filenames(context *ctx) ...@@ -72,18 +72,6 @@ void decode_lemmatizer_set_linguistic_resources_filenames(context *ctx)
} }
if(ctx->verbose){
fprintf(stderr, "perc_model_filename = %s\n", ctx->perc_model_filename);
fprintf(stderr, "vocabs_filename = %s\n", ctx->vocabs_filename);
fprintf(stderr, "mcd_filename = %s\n", ctx->mcd_filename);
fprintf(stderr, "perc_features_model_filename = %s\n", ctx->features_model_filename);
fprintf(stderr, "rules filename = %s\n", ctx->l_rules_filename);
fprintf(stderr, "exceptions filename = %s\n", ctx->fplm_filename);
fprintf(stderr, "f2p_filename = %s\n", ctx->f2p_filename);
}
} }
void maca_trans_lemmatizer_mcf2cff_help_message(context *ctx) void maca_trans_lemmatizer_mcf2cff_help_message(context *ctx)
...@@ -131,6 +119,7 @@ void generate_training_file(FILE *output_file, context *ctx, dico *d_l_rules, fp ...@@ -131,6 +119,7 @@ void generate_training_file(FILE *output_file, context *ctx, dico *d_l_rules, fp
/* dico *dico_pos = dico_vec_get_dico(ctx->vocabs, (char *)"POS"); */ /* dico *dico_pos = dico_vec_get_dico(ctx->vocabs, (char *)"POS"); */
c = config_new(conll_file, ctx->mcd_struct, 5); c = config_new(conll_file, ctx->mcd_struct, 5);
while(!config_is_terminal(c)){ while(!config_is_terminal(c)){
...@@ -182,6 +171,10 @@ int main(int argc, char *argv[]) ...@@ -182,6 +171,10 @@ int main(int argc, char *argv[])
fplm_struct *exceptions; fplm_struct *exceptions;
ctx = context_read_options(argc, argv); ctx = context_read_options(argc, argv);
// decode_lemmatizer_set_linguistic_resources_filenames(ctx); // decode_lemmatizer_set_linguistic_resources_filenames(ctx);
maca_trans_lemmatizer_mcf2cff_check_options(ctx); maca_trans_lemmatizer_mcf2cff_check_options(ctx);
exceptions = fplm_load_file(ctx->fplm_filename, ctx->verbose); exceptions = fplm_load_file(ctx->fplm_filename, ctx->verbose);
...@@ -198,6 +191,7 @@ int main(int argc, char *argv[]) ...@@ -198,6 +191,7 @@ int main(int argc, char *argv[])
mcd_link_to_dico(ctx->mcd_struct, ctx->vocabs, ctx->verbose); mcd_link_to_dico(ctx->mcd_struct, ctx->vocabs, ctx->verbose);
} }
/* in train mode create feature dictionnary for perceptron */ /* in train mode create feature dictionnary for perceptron */
if(ctx->mode == TRAIN_MODE) if(ctx->mode == TRAIN_MODE)
ctx->d_perceptron_features = dico_new((char *)"d_perceptron_features", 10000000); ctx->d_perceptron_features = dico_new((char *)"d_perceptron_features", 10000000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment