我正在尝试编写一个python程序,使用nltk包
从句子中删除停用词from nltk.corpus import stopwords
chachedWords = stopwords.words('english')
以下内容为TypeError: 'LazyCorpusLoader' object is not callable
答案 0 :(得分:3)
尝试:
from nltk.corpus import stopwords
import nltk
nltk.download("stopwords")
chachedWords = stopwords.words('english')