Email::Store::NamedEntity - Provides a list of named entities for an email
Remember to create the database table:
% make install % perl -MEmail::Store="..." -e 'Email::Store->setup'
And now:
foreach my $e ($mail->named_entities) { print $e->thing," which is a ", $e->description,"(score=",$e->score(),")\n"; }
Named entities is the NLP jargon for proper nouns which represent people, places, organisations, and so on. Clearly this is useful meta data to extract from a body of emails.
Named entities
This extension for Email::Store adds the named_entity table, and exports the named_entities method to the Email::Store::Mail class which returns a list of Email::Store::NamedEntity objects.
Email::Store
named_entity
named_entities
Email::Store::Mail
Email::Store::NamedEntity
A Email::Store::NamedEntity object has three fields -
The entity we've extracted e.g "Bob Smith" or "London" w
What class of entity it is e.g "person", "organisation" or "place"
How likely like it is to be that class.
Email::Store::NamedEntity will also attempt to index each field so that if you ahve the Email::Store::Plucene module installed then you could search using something like
Email::Store::Plucene
place:London
Email::Store::Mail, Lingua::EN::NamedEntity.
Simon Wistow, simon@thegestalt.org
simon@thegestalt.org
This module is distributed under the same terms as Perl itself.
To install Email::Store::NamedEntity, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Store::NamedEntity
CPAN shell
perl -MCPAN -e shell install Email::Store::NamedEntity
For more information on module installation, please visit the detailed CPAN module installation guide.