If you see simindex is the max value 0.46153846 so xsyn and ysyn seems to be best describe w1 = wordnet.synsets('social network') which you can see with definition. to examine (two or more objects, ideas, people, etc.) in order to note similarities and differences. #'an interconnected system of things or people' #'a party of people assembled to promote sociability and communal activity' Webster's New World Similar definitions Sufficient likeness to make meaningful comparison possible possibility of comparison similarity. to consider or describe as similar liken: Shall I compare thee to a summer's day verb (used without object), compared, comparing. American Heritage Similar definitions A comparing or being compared estimation of similarities and differences. to examine (two or more objects, ideas, people, etc.) in order to note similarities and differences: to compare two pieces of cloth to compare the governments of two nations. #Synset('network.n.04'), Synset('network.n.05'), Synset('network.v.01')]ĭef relative_matrix(asyn,bsyn,simindex): # find similarity between asyn & bsyn The act of comparing or the process of being compared. to examine (two or more objects, ideas, people, etc. Example Sentences Recent Examples on the Web This panel identified, tested, and scored a variety of dating apps in order to compare and contrast them. The results are then compared to the results of previous studies. #[Synset('network.n.01'), Synset('network.n.02'), Synset('net.n.06'), : to note what is similar and different about (two or more things) For our assignment we must compare and contrast the two poets. 1 transitive to consider how things or people are similar and how they are different compare something with/to something: Just compare the one that has been cleaned with the others. ![]() Here is the full code from rpus import wordnet a likening illustration by similitude comparative estimate or statement. ![]() The one with maximum similarity give you combined synset (which is what you are looking for). Find the similarity between each synset of w1 with w2.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |