Skip to content
Snippets Groups Projects
Commit 32d4db0e authored by Alexis Nasr's avatar Alexis Nasr
Browse files

modified mcd format, column index begins at 1 (used to be 0)

parent 1c1b0a6c
Branches
No related tags found
No related merge requests found
...@@ -155,6 +155,7 @@ mcd *mcd_read(char *mcd_filename, int verbose) ...@@ -155,6 +155,7 @@ mcd *mcd_read(char *mcd_filename, int verbose)
continue; continue;
} }
if(verbose) fprintf(stderr, "column = %d\tword feature = %s\trepresentation = %s\tfilename = %s\n", column, wf, representation, filename); if(verbose) fprintf(stderr, "column = %d\tword feature = %s\trepresentation = %s\tfilename = %s\n", column, wf, representation, filename);
column--; /* in the mcd file, columns begin at index 1, in internal representation, columns begin at index 0 */
m->wf[column] = mcd_wf_code(wf); m->wf[column] = mcd_wf_code(wf);
m->wf_str[column] = strdup(wf); m->wf_str[column] = strdup(wf);
if(m->wf[column] == -1){ if(m->wf[column] == -1){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment