【发布时间】:2018-11-04 20:06:03
【问题描述】:
这里的 stem 函数显示错误,说 stem 在循环中需要一个位置参数?
from nltk.stem import PorterStemmer as ps
text='my name is pythonly and looking for a pythonian group to be formed by me iteratively'
words = word_tokenize(text)
for word in words:
print(ps.stem(word))
【问题讨论】:
标签: python python-3.x nlp nltk porter-stemmer