wordnet getDict() could not find Wordnet dictionary

本小妞迷上赌 提交于 2019-12-01 11:50:41
Carlos Gomes

The problem is that the package is looking for the environment variable WNHOME

Try this:

>     setDict("C:/Program Files (x86)/WordNet/2.1/dict")

-

getDict()
[1] "Java-Object{com.nexagis.jawbone.Dictionary@46993aaa}"

EDIT

Adding OSX version

brew install wordnet

install.packages('wordnet')
library(wordnet)
setDict("/usr/local/Cellar/wordnet/3.1")
initDict()
getDict()
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!