MCPcopy Index your code
hub / github.com/clips/pattern / _parents

Method _parents

pattern/text/search.py:414–417  ·  view source on GitHub ↗
(self, word, pos="NN")

Source from the content-addressed store, hash-verified

412 pass
413
414 def _parents(self, word, pos="NN"):
415 try: return [w.senses[0] for w in self.wordnet.synsets(word, pos)[0].hypernyms()]
416 except KeyError:
417 pass
418
419#from en import wordnet
420#taxonomy.classifiers.append(WordNetClassifier(wordnet))

Callers

nothing calls this directly

Calls 1

hypernymsMethod · 0.80

Tested by

no test coverage detected