I want to find out synonym of two words like : diabetes mellitus,menstrual disorders,prostate enlarged etc. since wordnet is working for single word, how do I do it for two words ? any ideas ?
Asked
Active
Viewed 433 times
0
-
1How are you doing it for one word? – Alan Kavanagh Aug 22 '17 at 09:52
-
(1) generate embeddings ( a numerical vector representation) for each ngram (combination of words) (2) see which vectors are closest in the space of embeddings with an algorithm such as cosine-similarity ... this will require some work so do you research around word2vec, embedding and vector similarity... potential tools (sklearn, tensorflow, gensim, nltk) .. good luck – Mohamed Ali JAMAOUI Aug 22 '17 at 09:57
-
@AK47 using wordnet library , wordnet.synsets(word) . – Jitesh Aug 22 '17 at 10:04
-
@MedAli How word2vec helping in finding synonyms ? do you have any reference material ? – Jitesh Aug 22 '17 at 10:06
-
check this for information about word2vec https://blog.acolyer.org/2016/04/21/the-amazing-power-of-word-vectors/ – Mohamed Ali JAMAOUI Aug 22 '17 at 10:08
-
@Jitesh What shows up if you try wordnet.synsets('diabetes_mellitu') – Alan Kavanagh Aug 22 '17 at 10:09
-
@Jitesh someone asked a similar question here: https://stackoverflow.com/questions/44386503/how-to-find-synonyms-based-on-word2vec – Mohamed Ali JAMAOUI Aug 22 '17 at 10:12
-
1@AK47 It giving me null – Jitesh Aug 22 '17 at 11:05
-
OK, it was just a wild guess as looking up wordnet.synsets('cat') seems to return ['cat', 'true_cat'] so was curious to see if it would work for underscoring multiple words – Alan Kavanagh Aug 22 '17 at 11:05