Lingua-EN-NamedEntity
view release on metacpan or search on metacpan
data/mkdb.pl view on Meta::CPAN
use IO::Zlib;
my %wordlist;
my $dir = './blib/lib/Lingua/EN/NamedEntity';
print "\n";
print "I'm going to write some wordlists as DB_Files into a subdirectory\n";
print "in your home directory, to decrease start-up time.\n";
#my $dir = ((getpwuid $<)[7]). "/.namedentity";
#if (-d $dir) {
# print "Except I see you'd already got some. Carry on, then!\n";
# return 1;
#}
unless (-d $dir) {
mkdir $dir or die "Well, I can't seem to create $dir - $!\n";
}
tie %wordlist, "DB_File", "$dir/wordlist"
( run in 0.251 second using v1.01-cache-2.11-cpan-8d75d55dd25 )