我正在尝试编写一个 python 程序来使用 nltk 包从句子中删除停用词
from nltk.corpus import stopwords
chachedWords = stopwords.words('english')
下面给出了 TypeError: 'LazyCorpusLoader' object is not callable
最佳答案
尝试:
from nltk.corpus import stopwords
import nltk
nltk.download("stopwords")
chachedWords = stopwords.words('english')
关于python - NLTK 停用词返回错误 "LazyCorpusLoader is not callable",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42321701/