Commit 775995eb authored by Alexis Nasr's avatar Alexis Nasr
Browse files

removed useless messages in maca_trans_parser_mcf2cff.c

parent b7bd482b
...@@ -59,9 +59,9 @@ void generate_training_file_stream(FILE *output_file, context *ctx) ...@@ -59,9 +59,9 @@ void generate_training_file_stream(FILE *output_file, context *ctx)
c = config_initial(conll_file, ctx->mcd_struct, 5); c = config_initial(conll_file, ctx->mcd_struct, 5);
while((ref = sentence_read(conll_file_ref , ctx->mcd_struct)) && (sentence_nb < ctx->sent_nb)){ while((ref = sentence_read(conll_file_ref , ctx->mcd_struct)) && (sentence_nb < ctx->sent_nb)){
sentence_print(stdout, ref, ctx->dico_labels); /* sentence_print(stdout, ref, ctx->dico_labels); */
while(1){ while(1){
config_print(stdout,c); /* config_print(stdout,c); */
config2feat_vec_cff(ctx->features_model, c, ctx->d_perceptron_features, fv, ctx->mode); config2feat_vec_cff(ctx->features_model, c, ctx->d_perceptron_features, fv, ctx->mode);
/* feat_vec_print(stdout, fv); */ /* feat_vec_print(stdout, fv); */
...@@ -87,8 +87,8 @@ void generate_training_file_stream(FILE *output_file, context *ctx) ...@@ -87,8 +87,8 @@ void generate_training_file_stream(FILE *output_file, context *ctx)
/* shift dummy word in stack */ /* shift dummy word in stack */
movement_shift(c, 1, 0); movement_shift(c, 1, 0);
/* printf("sentence complete config : "); /* printf("sentence complete config : ");
config_print(stdout,c); */ config_print(stdout,c); */
/* empty depset */ /* empty depset */
depset_free(c->ds); depset_free(c->ds);
...@@ -217,16 +217,13 @@ int main(int argc, char *argv[]) ...@@ -217,16 +217,13 @@ int main(int argc, char *argv[])
output_file = myfopen(ctx->cff_filename, "w"); output_file = myfopen(ctx->cff_filename, "w");
else else
output_file = stdout; output_file = stdout;
if(ctx->stream_mode) if(ctx->stream_mode){
generate_training_file_stream(output_file, ctx); generate_training_file_stream(output_file, ctx);
else }
else{
generate_training_file_buffer(output_file, ctx); generate_training_file_buffer(output_file, ctx);
}
if(ctx->mode == TRAIN_MODE){ if(ctx->mode == TRAIN_MODE){
/* dico_print(ctx->perceptron_features_filename, ctx->d_perceptron_features); */ /* dico_print(ctx->perceptron_features_filename, ctx->d_perceptron_features); */
dico_vec_print(ctx->vocabs_filename, ctx->vocabs); dico_vec_print(ctx->vocabs_filename, ctx->vocabs);
......
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