(self)
| 275 | |
| 276 | @property |
| 277 | def weight(self): |
| 278 | return sentiwordnet is not None \ |
| 279 | and sentiwordnet.synset(self.id, self.pos)[:2] \ |
| 280 | or None |
| 281 | |
| 282 | def similarity(synset1, synset2): |
| 283 | """ Returns the semantic similarity of the given synsets. |