the time came to use what I found
trying to make it as simple as Ubuntu gets:
sudo apt-get install wordnet libwordnet-querydata-perl libdigest-sha1-perl- get and make Text-Similarity
- get WordNet::Similarity
- making it use Ubuntu’s default dir for WN:
perl Makefile.PL WNHOME=/usr/share/wordnet - it looks for
dictsubdir so:cd /usr/share/wordnet; sudo ln -s . dictor 208 line of next file - before
make testalso change in/usr/share/perl5/WordNet/QueryData.pmline 206 the default dir - test similarity measures, e.g.:
samples/sample.pl computer#n#1 notebook#n#1
30 April 2009 at 04:24 |
Hey, thanks for this .. I’ve been struggling with trying to do a CPAN install under ubuntu for more than an hour
This is just what I needed. Dzienki bardzo.