aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[aspell-devel] Inconsistent calling of edit distance function in suggest


From: Paraag Goyal
Subject: [aspell-devel] Inconsistent calling of edit distance function in suggest.cpp
Date: Sat, 15 Sep 2007 17:04:02 -0700

Hi,

In my application, it seems to me (at this point at least) that I will need to adjust the edit distance weights making "del1" and "del2" different. While experimenting with this, I found that suggest.cpp calls the edit_distance functions with the first two arguments (the original word/original soundslike, the candidate word/candidate soundslike) inconsistently. For example, in the released version 0.60.5,

aspell-0.60.5/modules/speller/default/suggest.cpp:

line#721, 750, 777: (The original_soundslike is the _second_ argument)

score = edit_dist_fun(sl, original_soundslike, parms->edit_distance_weights);

But on lines 1030, 1044, 1106, 1121: "original" word and soundslike are the _first_ argument
          i->word_score = edit_distance(original.clean,
                                          i->word_clean,.....);
          i->soundslike_score = edit_distance(original.soundslike, i->soundslike
,
                                              parms->edit_distance_weights);


Of course, I see that the default values of del1=del2=95, so it makes no difference right now. But, when those two are different, the inconsistency will show its effects...

How do I file a bug for this?

Thanks
Paraag


reply via email to

[Prev in Thread] Current Thread [Next in Thread]