python还原词干PorterStemmer 以及停用词stopwords的获取
import nltk ##conda install nltk 具体记不清了,需要点击弹窗左侧的stopwords,然后点击右下角的download
from nltk.corpus import stopwords
stopwords = stopwords.words("english")
print(stopwords)##停用词,无太大价值,意义不大的词语
import nltk from nltk.stem.porter import PorterStemmer ##还原词干
需要注意这里用的是stem,而不是stemmer,可能由于版本不匹配导致。

浙公网安备 33010602011771号