From 4a5c7e7d24f02304c946cf6e64ced3a2ee13ed0d Mon Sep 17 00:00:00 2001 From: Alexis Nasr <alexis.nasr@lif.univ-mrs.fr> Date: Thu, 16 Feb 2017 10:13:23 +0100 Subject: [PATCH] modified mcf2conll in such a way that words in the output conll file never get a governor with negative index --- maca_tools/src/mcf2conll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maca_tools/src/mcf2conll.c b/maca_tools/src/mcf2conll.c index c5f5064..078be93 100644 --- a/maca_tools/src/mcf2conll.c +++ b/maca_tools/src/mcf2conll.c @@ -181,7 +181,7 @@ int main(int argc, char *argv[]) fprintf(output_file, "\t"); if(gov_col){ - if(word_get_gov(w) == 0) + if((word_get_gov(w) == 0) || ((word_get_gov(w) + index) < 0)) fprintf(output_file, "0\t"); else fprintf(output_file, "%d\t", word_get_gov(w) + index); -- GitLab