All, I am stuck, and I hope someone here can glance at my problem and
tell me what I am doing wrong. I would appreciate
it.
The following code:
#!/usr/bin/perl -w
use WordNet::QueryData;
my $wn = WordNet::QueryData->new(noload=>1);
print "Synset: ", join(", ", $wn->querySense("cat#n#7", "syns")),
"\n";
produces the following error:
silly@wrentit:~/practice/querydataPractice$
qd.pl
Dir = noload
Verbose = 1
Loading WordNet data...
(loadExclusions) at /usr/share/perl5/WordNet/QueryData.pm line 310.
Not able to open noload/noun.exc or noload\noun.exc: No such file or
directory at /usr/share/perl5/WordNet/QueryData.pm line 319.
But it runs fine without the noload hash argument:
silly@wrentit:~/practice/querydataPractice$
qd.pl
Synset: big_cat#n#1, cat#n#7
My OS is Kubuntu Jaunty Jackalope
My Perl is: This is perl, v5.10.0 built for x86_64-linux-gnu-thread-
multi
printevn shows WNHOME=/usr/local/WordNet-3.0/
Plus it works without the noload hash, but I need the noload for my
project.
I installed QueryData like so:
silly@wrentit:~/practice/querydataPractice$ sudo perl -MCPAN -e
'install WordNet::QueryData'
and got:
WordNet::QueryData is up to date (1.47).
It seems like it is reading the hash argument as a regular argument in
which the Dir variable is assigned the first string. Is there some
package I need to make the constructor accept hashes as arguments?
I bet there is some very basic thing I don't know. Can anyone point me
in the right direction? thanks, Silly