Wordnet::SenseSearch - Just get a synset from a sense key
use Wordnet::SenseSearch; my $search = new Wordnet::SenseSearch (dir => '/usr/local/Wordnet/dict/'); my %synset = $search->lookup('animal%1:03:00::'); print join ", ", @{$synset{words}}; print $synset{pos}; print $synset{gloss};
This module does just one thing: returns the typically useful text for a synset, given its synset index key. The format of these keys and the sense index is described at:
http://wordnet.princeton.edu/man/senseidx.5WN.html
Copyright (C) 2006 by Danny Brian.
To install Wordnet::SenseSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wordnet::SenseSearch
CPAN shell
perl -MCPAN -e shell install Wordnet::SenseSearch
For more information on module installation, please visit the detailed CPAN module installation guide.