The package wordnet tries to locate a valid WordNet installation on start up by investigating the WNHOME environment variable and by trying default installation locations. On success it acquires a pointer to the actual WordNet dictionary and stores internally a reference to the dictionary instance. However, if this procedure does not work automatically in your environment, you can provide the path to the WordNet installation and set the internal default reference via this function.
包wordnet,试图找到一个有效的WordNet的安装启动调查WNHOME环境变量,并尝试默认安装位置。在成功获得一个指针,指向实际的英英和存储在内部的字典实例的引用。但是,如果这个过程不会自动在您的环境中工作,您可以提供WordNet的安装路径,通过此功能,设置内部默认的参考。
用法----------Usage----------
setDict(pathData)
参数----------Arguments----------
参数:pathData
Path to the WordNet data files.
WordNet的数据文件的路径。
值----------Value----------
A dictionary instance.
一本字典的实例。
(作者)----------Author(s)----------
Ingo Feinerer
参考文献----------References----------
C. Fellbaum (1998). WordNet: An Electronic Lexical Database. Bradford Books. http://wordnet.princeton.edu/
M. Wallace (2007). Jawbone Java WordNet API. http://mfwallace.googlepages.com/jawbone.html
实例----------Examples----------
## Not run: setDict("/usr/local/WordNet-3.0/dict")[#不运行:setDict(“/ usr/local/WordNet-3.0/dict”)]