我无法将wordnet加载到R中。我使用R x64 2.14.1。我安装了软件包wordnet,然后尝试加载该软件包。
> library(wordnet)
Warning message:
In initDict() :
cannot find WordNet 'dict' directory: please set the environment variable WNHOME to its parent
怎么了?如何以及如何设置目录WNHOME。
最佳答案
您需要设置字典路径。请参见下面的示例。
setDict("/Users/kasper2304/Desktop/WordNet-3.0/dict")
此外,我在使用R-studio时遇到问题,因此不得不使用JGR。
关于r - 无法在R中加载wordnet程序包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8868777/