Lingua::EN::Semtags::Engine - extract semantic tags (semtags) from English text


Lingua-EN-Semtags-Engine documentation  | view source Contained in the Lingua-EN-Semtags-Engine distribution.

Index


NAME

Top

Lingua::EN::Semtags::Engine - extract semantic tags (semtags) from English text

SYNOPSIS

Top

  use Lingua::EN::Semtags::Engine;
  my $engine = Lingua::EN::Semtags::Engine->new;
  my @semtags = $engine->semtags("your blog post title");

DESCRIPTION

Top

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:

METHODS

semtags($string)

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.

sentence($string)

Returns an instance of Lingua::EN::Semtags::Sentence populates with Lingua::EN::Semtags::LangUnit objects which represnet meaningful language units.

tagger()

Returns the Lingua::EN::Tagger instance used by the engine.

verbose([$verbose])

Returns/sets the verbose mode.

wn()

Returns the WordNet::QueryData instance used by the engine.

SEE ALSO

Top

Lingua::EN::Tagger, WordNet::QueryData

AUTHOR

Top

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.