in reply to Match similar text
shadox,
Take a look at this node posted yesterday, though Text::Levenshtein is usually the standard answer. Set a maximum threshold, so if the closest match exceeded this threshold it would be set aside for human interaction
Iterate over each state calculating the similarity distance and select the shortest distance
Set aside for human interaction any match between two states that was close, perhaps only by a distance of 1
Write a log for changes until you feel confident/comfortable it is doing the right thing
Take a look at this node posted yesterday, though Text::Levenshtein is usually the standard answer.
I would do something like the following:
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Match similar text
by exussum0 (Vicar) on Sep 07, 2003 at 00:24 UTC |
In Section
Seekers of Perl Wisdom