Skip to content

Commit 75d3ef1

Browse files
authored
Update app1.py
1 parent 562f986 commit 75d3ef1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

django/app1/app1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import nltk
22
"""nltk.download()"""
33
from nltk.corpus import wordnet as wn
4+
45
panda = wn.synset('panda.n.01')
6+
57
hyper = lambda s: s.hypernyms()
8+
69
list(panda.closure(hyper))

0 commit comments

Comments
 (0)