【发布时间】:2018-06-14 04:01:03
【问题描述】:
我正在尝试将 NLTK 中的类似函数与 python 一起使用,但它一直返回“No Matches”,即使我在句子中输入了类似的单词。
我的代码在这里
from nltk.tokenize import word_tokenize
import nltk
raw = "Analyzing text to find common terms using Python and NLTK"
text = nltk.Text(raw)
text.similar('mutual')
有什么想法吗?
【问题讨论】: