Subject: | bug in strings with swapped words? |
Date: | Thu, 08 Nov 2007 23:06:39 +0100 |
To: | bug-Algorithm-HowSimilar [...] rt.cpan.org |
From: | Alessandro Di Marco <dmr [...] c0nc3pt.com> |
Hello,
I've tried your module on word-swapped strings (e.g. 'one two' and 'two one')
with the program herewith attached, obtaining:
av_similarity = 0.5
sim_str1_to_str2 = 0.5
sim_str2_to_str1 = 0.5
matches = two
in_str1_but_not_str2 = one
in_str2_but_not_str1 = one
Probably I'm missing something, but IMHO the last three lines contradict. That
is, either $matches is "one two" (or "two one" as well) or it is empty...
Regards,
Message body is not shown because sender requested not to inline it.
--
Discretion is being able to raise your eyebrow instead of your voice. - Unknown