我不能使用nltkwordnet狐猴,因为由于访问权限问题,我无法在大学计算机上下载wordnet语料库。Please use the NLTK Downloader to obtain the resource: >>> nltk.download() Searched in:当我在家里有同样的问题时,我可以用两种方法来解决:
使用nltk.d
我试图让NLTK和wordnet在Heroku上工作。我已经做了nltk.download()pip install -r requirements.txtResource'corpora/wordnet' not found.Please use the NLTK
Downloader to obtain the resource: >>> n
我想要将pandas数据帧中的一列(实际上相当大,大约有150万行文本数据)与一个字符串进行比较。我有一个固定的字符串 "Can I help you today?"我的目标是获得相似度分数(我仍然在决定我使用的度量标准,Levenstein与Jaccard还是Cosine),但这不是我的主要问题,获得每个pandas数据帧值和固定字符串值之间的相似度分数,然后可能只是按顺序对它们进行排序下面是我写的代码: import n