Commit d6ec8cb5 authored by Alexis Nasr's avatar Alexis Nasr
Browse files

bug fixing in maca_common.dico.c

parent f75f5e8c
......@@ -156,6 +156,8 @@ dico *dico_extract_from_corpus(char *filename, int column, char *dico_name)
while(fgets(buffer, 10000, f)){
if(feof(f)) return NULL; /* no more words to read */
if((buffer[0] == '\n') || (buffer[0] == ' ')) continue;
if(buffer[strlen(buffer) - 1] == '\n')
buffer[strlen(buffer) - 1] = '\0';
token = strtok(buffer, "\t"); /* get index */
column_nb = 0;
do{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment