Hi all,
I am trying to use the function getLCSbyDepth from the package 
WordNet::Similarity::DepthFinder to get the depth from the root of the noun 
taxonomy to the LCS of a pair of senses.
I observed that the program crashed with the word "tilde" as following code:

my $df = WordNet::Similarity::DepthFinder->new($wn);
my @LCSs=$df->getLCSbyDepth("tilde#n#1","tilde#n#1","n",'wps');

The error was: Can't use an undefined value as an ARRAY reference at 
/home/roth/quangdo2/lib/perl5/site_perl/5.8.5/WordNet/Similarity/DepthFinder.pm 
line 150, <GEN8> line 36.

By thinking that I made a mistake with my own code, I tried the similarity 
metric WordNet::Similarity::wup to get the similarity score for the pair 
("tilde","tilde"). The program crashed in the similar fashion as my code above.

Have you ever experienced with this problem? If you have any advice to overcome 
this problem, please let me know.

I appreciate your help.
Thanks a lot.

Quang



      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Reply via email to