MCPcopy Create free account
hub / github.com/clips/pattern / weight

Method weight

pattern/text/en/wordnet/__init__.py:277–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
282def similarity(synset1, synset2):
283 """ Returns the semantic similarity of the given synsets.

Callers

nothing calls this directly

Calls 1

synsetMethod · 0.80

Tested by

no test coverage detected