| Wordnet-SenseSearch documentation | view source | Contained in the Wordnet-SenseSearch distribution. |
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.
| Wordnet-SenseSearch documentation | view source | Contained in the Wordnet-SenseSearch distribution. |