Search::Tools::Snipper 0.06 review
DownloadSearch::Tools::Snipper is a Perl module to extract keywords in context. SYNOPSIS my $query = [ qw/ quick dog / ]; my $text
|
|
Search::Tools::Snipper is a Perl module to extract keywords in context.
SYNOPSIS
my $query = [ qw/ quick dog / ];
my $text = 'the quick brown fox jumped over the lazy dog';
my $s = Search::Tools::Snipper->new(
occur => 3,
context => 8,
word_len => 5,
max_chars => 300,
query => $query
);
print $s->snip( $text );
Search::Tools::Snipper extracts keywords and their context from a larger block of text. The larger block may be plain text or HTML/XML.
Requirements:
Perl
Search::Tools::Snipper 0.06 search tags