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

bug fixing in maca_common.dico.c

parent f75f5e8c
No related branches found
No related tags found
No related merge requests found
......@@ -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{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment