Page 1 of 1

finding similarity using wordnat database

Posted: Sat Aug 11, 2007 2:20 am
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

Posted: Sat Aug 11, 2007 10:51 am
by Benjamin
similar_text(), levenshtein() and soundex() would be good places to start.

Posted: Sun Aug 12, 2007 10:34 pm
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

Posted: Mon Aug 13, 2007 4:10 am
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().