If you have the intention of representing the similarities between two objects, then you use compare followed by ‘to’. 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. The verb compare carries with it the meaning of ‘to represent or describe similar or liken’. #'an interconnected system of things or people' Determiners modify nouns just like adjectives do, so demonstrative determiners are also called demonstrative adjectives. This rain is nothing compared to what we got yesterday. #'a party of people assembled to promote sociability and communal activity' demonstrative determiners (demonstrative adjectives) The words this, that, these, and those can also be used as determiners instead of pronouns. : in relation to (something else) : measured or judged against (something else) Im a slob compared to my roommate. #Synset('network.n.04'), Synset('network.n.05'), Synset('network.v.01')]ĭef relative_matrix(asyn,bsyn,simindex): # find similarity between asyn & bsyn the considering of two things with regard to some characteristic that is common to both, as the likening of a hero to a lion in courage. intransitive compare with/to somebody/something to be similar to somebody/something else, either better or worse. #Synset('social.a.03'), Synset('social.s.04'), Synset('social.s.05'), a likening illustration by similitude comparative estimate or statement. Here is the full code from rpus import wordnet compare verb (EXAMINE DIFFERENCES) T to examine or look for the differences between persons or things: This store’s prices are high compared to what some other stores charge. The one with maximum similarity give you combined synset (which is what you are looking for). Voraussetzungen und Grundwissen für die stylistique comparée 2.1.1. Find the similarity between each synset of w1 with w2. Die stylistique comparée als Teilbereich der sprachenpaarbezogenen Übersetzungswissenschaft 2.1.
0 Comments
Leave a Reply. |