Skip to content
Back to formatted view

Raw Message

Message-ID: <20080930112755.DA62E5945F7@borg.st.net.au>
Date: 2008-09-30T11:27:25Z
From: Bob Green
Subject: problem loading WordNet into R
In-Reply-To: <mailman.19.1222768806.753.r-help@r-project.org>

Hello,

I am hoping someone can assist me with a problem I have trying to 
load the WordNet dictionary into R. Below is the error
message I receive:

 > library(wordnet)
 > initDict()
[1] FALSE
Warning message:
In initDict() :
cannot find WordNet 'dict' directory: please set the environment 
variable WNHOME to its parent


I have entered the Variable value via: control -> panel -> system -> 
system properties -> advanced -> environment

Variable Name = WNHOME
variable value = C:\Program Files\R\WordNet-3.0\

I have checked this via the Command prompt window:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>echo %WNHOME%
C:\Program Files\R\WordNet3.0\

I have also checked that the file path is correct:

C:\>cd C:\Program Files\R\
C:\Program Files\R> cd C:\Program Files\R\WordNet3.0\
C:\Program Files\R\WordNet3.0> cd C:\Program Files\R\WordNet3.0\dict
C:\Program Files\R\WordNet3.0\dict>

Any assistance is much appreciated

regards

Bob