Skip to content
Snippets Groups Projects
Commit 75386f69 authored by Franck Dary's avatar Franck Dary
Browse files

Removed useless tabulation on the output of maca_tm_decoder

parent 58242ff2
No related branches found
No related tags found
No related merge requests found
......@@ -187,27 +187,26 @@ void print_word_buffer_tagparser(config *c, mcd *m)
word *dep = word_buffer_get_word_n(config_get_buffer(c), i);
for(int col = 0; col < m->nb_col; col++){
const char *col_end = col == m->nb_col -1 ? "\n" : "\t";
word_sprint_col_n(input_col, dep, col);
if(is_blank_or_unknown(input_col)){
int code = m->wf[col] != -1 ? dep->wf_array[m->wf[col]] : -1;
if(m->representation[col] == MCD_REPRESENTATION_VOCAB){
const char *feature = code != -1 ? mcd_get_str(m, code, col) : unknown;
printf("%s\t", feature);
printf("%s%s", feature, col_end);
}
else{
if(m->wf[col] == MCD_WF_SENT_SEG)
printf("%s\t", code == 1 ? "1" : "0");
printf("%s%s", code == 1 ? "1" : "0", col_end);
else
printf("%d\t", code);
printf("%d%s", code, col_end);
}
}
else{
printf("%s\t", input_col);
printf("%s%s", input_col, col_end);
}
}
printf("\n");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment