We don't bite newbies here... much | |
PerlMonks |
Re: Levenstein distance transcriptionby BrowserUk (Patriarch) |
on Dec 05, 2014 at 15:58 UTC ( [id://1109363]=note: print w/replies, xml ) | Need Help?? |
I've got to wonder why you want this? I normally try to resist asking this question, because I personally dislike having to explain my reasoning to others... but. There are so many different possibilities for each pair of strings, to want any given one seems nonsensical. For example: Given the length (in words) of any two strings, you can generate an "edit transcript" thus:
Or:
As best I can tell, the only actually useful information you might glean from this, (done the full, laborious Levenstein way), is where the two sentences happen to contain the same word in the same position. But given that if you had two identical sentences with the exception that one of the had an extra word at the start, eg:
The Levenstein algorithm would fail to detect any 'same word in same place' and produce a "edit transcript" of (something like) 'DIDIDIDII'; I'm failing to see a good use? With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|