xxxxxxxxxx
import nltk
import subprocess
# Download and unzip wordnet
try:
nltk.data.find('wordnet.zip')
except:
nltk.download('wordnet', download_dir='/kaggle/working/')
command = "unzip /kaggle/working/corpora/wordnet.zip -d /kaggle/working/corpora"
subprocess.run(command.split())
nltk.data.path.append('/kaggle/working/')
# Now you can import the NLTK resources as usual
from nltk.corpus import wordnet