similarity percentage of two articles

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

similarity percentage of two articles

Post by m2babaey »

Hi
How can I get the similarity percentage of two articles using php?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: similarity percentage of two articles

Post by Kieran Huggins »

divide the average article size by the levenshtein() distance between the two for a percentage
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: similarity percentage of two articles

Post by jayshields »

Wow, I never knew about that.
Post Reply