Yields the semantically opposite synset, for example: synsets("death")[0].antonym => Synset("birth").
(self)
| 177 | |
| 178 | @property |
| 179 | def antonym(self): |
| 180 | """ Yields the semantically opposite synset, for example: |
| 181 | synsets("death")[0].antonym => Synset("birth"). |
| 182 | """ |
| 183 | p = self._synset.getPointers(wn.ANTONYM) |
| 184 | return len(p) > 0 and Synset(p[0].getTarget()) or None |
| 185 | |
| 186 | def meronyms(self): |
| 187 | """ Yields a list of synsets that are semantic members/parts of this synset, for example: |
nothing calls this directly
no test coverage detected