Senna::Snippet

Senna::Snippet is a Perl wrapper Around sen_snip.
Download

Senna::Snippet Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daisuke Maki
  • Publisher web site:
  • http://search.cpan.org/~dmaki/

Senna::Snippet Tags


Senna::Snippet Description

Senna::Snippet is a Perl wrapper Around sen_snip. Senna::Snippet is a Perl wrapper around sen_snip.SYNOPSIS use Senna::Constants qw(SEN_ENC_EUCJP); use Senna::Snippet; my $snip = Senna::Snippet->new( encoding => SEN_ENC_EUCJP, width => 100, # width of snippet max_results => 10, # max number of results returned on exec() default_open_tag => '', # default '{' default_close_tag => '' ); $snip->add_cond(key => "poop", open_tag => "", close_tag => ""); $snip->add_cond(...); my @text = $snip->exec( string => $text_to_be_snipped );Senna::Snippet allows you to extract out KWIC text, much like how Google and other search engines hilight the queried text in the search result. Requirements: · Perl


Senna::Snippet Related Software