From 32d4db0e7946d0f002447e119fae04878ce1fee8 Mon Sep 17 00:00:00 2001
From: Alexis Nasr <alexis.nasr@lif.univ-mrs.fr>
Date: Mon, 3 Oct 2016 18:17:06 -0400
Subject: [PATCH] modified mcd format, column index begins at 1 (used to be 0)

---
 maca_common/src/mcd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/maca_common/src/mcd.c b/maca_common/src/mcd.c
index 4065f23..115e8ce 100644
--- a/maca_common/src/mcd.c
+++ b/maca_common/src/mcd.c
@@ -155,6 +155,7 @@ mcd *mcd_read(char *mcd_filename, int verbose)
        continue;
      }
      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_str[column] = strdup(wf);
      if(m->wf[column] == -1){
-- 
GitLab