finding similarity using wordnat database

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
max529
Forum Commoner
Posts: 50
Joined: Sat May 19, 2007 4:10 am

finding similarity using wordnat database

Post by max529 »

hi all,

how can i calculate the similarity between two words using the wordnet database files.Also i have to find the base word from different tenses.for example ive to get output as change if the input is changed.

Max
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

similar_text(), levenshtein() and soundex() would be good places to start.
max529
Forum Commoner
Posts: 50
Joined: Sat May 19, 2007 4:10 am

Post by max529 »

wat i want is not to find similar sounding words ,but words that are similar in meaning...i wast to find if 'change logo' and 'switch logo' are same.I believe those function doesnt do that

max
User avatar
stereofrog
Forum Contributor
Posts: 386
Joined: Mon Dec 04, 2006 6:10 am

Post by stereofrog »

This is called "thesaurus" IIRC.

Check the wordnet site, there was a link to php api somewhere. Alternatively you should be able to run their command line tool via exec().
Post Reply