| Lingua-EN-Semtags-Engine documentation | view source | Contained in the Lingua-EN-Semtags-Engine distribution. |
Lingua::EN::Semtags::Engine - extract semantic tags (semtags) from English text
use Lingua::EN::Semtags::Engine;
my $engine = Lingua::EN::Semtags::Engine->new;
my @semtags = $engine->semtags("your blog post title");
Lingua::EN::Semtags uses Lingua::EN::Tagger and WordNet::QueryData to extract semantic tags (semtags) from English text. Semtags are words which reflect the semantic essence of the text (similar to topic keywords).
Lingua::EN::Semtags was designed and developed to solve a particular problem I was facing.
Problem: a user is processing blog post titles and needs to programmatically determine the posts' semantic context.
Solution: the user feeds a blog post title to Lingua::EN::Semtags and gets back a set of semtags which can be used for further processing (e.g., web searches).
Example: a blog post title like "BBtv: Graffiti Research Lab, the movie" (boingboing.net, Posted by Xeni Jardin, April 24, 2008 8:00 AM) would produce the following semtags: [DECORATION WORKPLACE SHOW].
Please note that the module makes the following assumptions when attempting to extract semtags:
Calls sentence($string), gets back a populated instance of
Lingua::EN::Semtags::Sentence, iterates over its
Lingua::EN::Semtags::LangUnits, populates and returns an array of their
semtags.
Returns an instance of Lingua::EN::Semtags::Sentence populates with
Lingua::EN::Semtags::LangUnit objects which represnet meaningful language
units.
Returns the Lingua::EN::Tagger instance used by the engine.
Returns/sets the verbose mode.
Returns the WordNet::QueryData instance used by the engine.
Igor Myroshnichenko <igorm@cpan.org>
Copyright (c) 2008, All Rights Reserved.
This software is free software and may be redistributed and/or modified under the same terms as Perl itself.
| Lingua-EN-Semtags-Engine documentation | view source | Contained in the Lingua-EN-Semtags-Engine distribution. |