The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.");

@loc1 = $locate->locate(@in1);

if($loc1[2] eq "attach") {

    $insert->attach(\@in1, \@loc1);                                            
                                                     

}

else {

    $insert->merge(\@in1, @loc1);

}

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::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).