I am trying to write a python program to remove stopword from a sentence using nltk package
from nltk.corpus import stopwords
chachedWords = stopwords.words('english')
the following gives TypeError: 'LazyCorpusLoader' object is not callable
Try:
from nltk.corpus import stopwords
import nltk
nltk.download("stopwords")
chachedWords = stopwords.words('english')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With