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

bug fixing in tagger

parent 53a616c9
Branches
Tags
No related merge requests found
......@@ -303,6 +303,9 @@ context *context_read_options(int argc, char *argv[])
break;
case 'P':
ctx->f2p_filename = strdup(optarg);
if(!strcmp(ctx->f2p_filename, "_") || !strcmp(ctx->f2p_filename, "NULL"))
ctx->f2p = NULL;
else
ctx->f2p = form2pos_read(ctx->f2p_filename);
break;
case 'N':
......
......@@ -18,7 +18,7 @@ void add_signature_to_words_in_word_buffer(word_buffer *bf, form2pos *f2p)
{
int i;
word *w;
char lower_form[100];
char lower_form[1000];
for(i = word_buffer_get_nbelem(bf) - 1; i >=0 ; i--){
w = word_buffer_get_word_n(bf, i);
......@@ -46,7 +46,7 @@ void add_signature_to_words_in_word_buffer(word_buffer *bf, form2pos *f2p, dico
signature = form2pos_get_signature(f2p, w->form);
w->signature = signature;
if(form2pos_word_is_non_ambiguous(f2p, w->form, &pos)){
/* printf("%s non ambigu code = %d \n", pos, dico_string2int(dico_pos, pos)); */
// printf("%s non ambigu code = %d \n", pos, dico_string2int(dico_pos, pos));
word_set_pos(w, dico_string2int(dico_pos, pos));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment