NAME
WordNet::Extend - Perl modules for extending your local WordNet.
SYNOPSIS
Basic Usage Example
use WordNet::Extend::Locate;
use WordNet::Extend::Insert;
my $locate = WordNet::Extend::Locate->new();
my $insert = WordNet::Extend::Insert->new();
@in1 = ("crackberry","noun","withdef.1", "A BlackBerry, a handheld device considered addictive for its networking capability.");
print "Locating where $in1[0] should be inserted...\n";
@loc1 = @{$locate->locate(\@in1)};
print "System found $loc1[1] as the ideal insertion location...\n";
if($loc1[2] eq "attach")
{
print "Attaching $in1[0] to $loc1[0]";
$insert->attach(\@in1, \@loc1);
}
else
{
print "Merging $in1[0] into $loc1[0]";
$insert->merge(\@in1, @loc1);
}
#$insert->restoreWordNet();
DESCRIPTION
Introduction
WordNet is a widely used tool in NLP and other research areas. A drawback of WordNet is the amount of time between updates. WordNet was last updated and released in December, 2006, and no further updates are planned. WordNet::Extend aims to help developers get a large use out of WordNet by allowing users to push the bounds of their own local WordNet. Both by allowing users to insert new lemmas into WordNet (WordNet::Extend::Insert) and helping users decide where a good place to insert new lemmas into WordNet is (WordNet::Extend::Locate).