Ted Pedersen > WordNet-Similarity >
WordNet::Similarity::GlossFinder    Annotate this POD   New  6
Open  2 View/Report Bugs Module Version: 2.04   Source  
WordNet::Similarity::GlossFinder - module to implement gloss
finding methods for WordNet::Similarity measures of semantic
relatedness (specifically, lesk and vector)     use
WordNet::QueryData;   my $wn = WordNet::QueryData->new;
defined $wn or die "Construction of WordNet::QueryData failed";
use WordNet::Similarity::GlossFinder;   my $obj =
WordNet::Similarity::GlossFinder->new ($wn);   my ($err,
$errString) = $obj->getError ();   $err and die $errString;
my $wps1 = 'england#n#1';   my $wps2 = 'winston_churchill#n#1';
# get the glosses of these two synsets, since we are not using a
# configuation file to specify relations, we will only get the
# immediate glosses of the two wps entries. The default weight
and   # relation appear in $weight and $relation - these can be
modified   # via a configuration file.     my ($wps1gloss,
$wps2gloss