GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SENNA::SNIPPET (3)

.ds Aq ’

NAME

Senna::Snippet - Wrapper Around sen_snip

CONTENTS

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 => <b>, # default {
    default_close_tag => </b>
  );

  $snip->add_cond(key => "poop", open_tag => "<s>", close_tag => "</s>");
  $snip->add_cond(...);

  my @text = $snip->exec( string => $text_to_be_snipped );



DESCRIPTION

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.

METHODS

    new

    open

Alias to new().

    add_cond

    exec

AUTHOR

Copyright (C) 2005 - 2006 by Daisuke Maki <dmaki@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.

Development funded by Brazil Ltd. <http://dev.razil.jp/project/senna/>

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SENNA::SNIPPET (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.