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

modified mcf2conll in such a way that words in the output conll file never get...

modified mcf2conll in such a way that words in the output conll file never get a governor with negative index
parent 06d939af
Branches
No related tags found
No related merge requests found
...@@ -181,7 +181,7 @@ int main(int argc, char *argv[]) ...@@ -181,7 +181,7 @@ int main(int argc, char *argv[])
fprintf(output_file, "\t"); fprintf(output_file, "\t");
if(gov_col){ 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"); fprintf(output_file, "0\t");
else else
fprintf(output_file, "%d\t", word_get_gov(w) + index); fprintf(output_file, "%d\t", word_get_gov(w) + index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment