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
Lingua::JA::Summarize::Extract(3) User Contributed Perl Documentation Lingua::JA::Summarize::Extract(3)

Lingua::JA::Summarize::Extract - summary generator for Japanese

    use strict;
    use warnings;
    use utf8;
    use Lingua::JA::Summarize::Extract;

    my $text = '日本語の文章を適当に書く。';
    my $summary = Lingua::JA::Summarize::Extract->extract($text);

    print $summary->as_string;
    print "$summary";

    # cuts short to 20 length
    $summary->length(20);
    print "$summary";

    # mecab charset
    my $extractor = Lingua::JA::Summarize::Extract->new({ mecab_charset => 'utf8' });

Lingua::JA::Summarize::Extract is a summary generator for Japanese text. The extraction method can be changed with the plug-in mechanism.

new([options])
a object is made by using the options.
extract(text[, options])
text is summarized. blessed by using options if called direct. return to Lingua::JA::Summarize::Extract::ResultSet object.

the content of processing can be changed by passing the constructor the options.
plugins
the processing of split of word and line and the scoring etc. can be done by using another modules. please pass it by the ARRAY reference.
rate
the weight at scoring can be changed.

thing to refer to POD of each plugin when you want to examine other options.

Tatsuhiko Miyagawa

Kazuhiro Osawa <ko@yappo.ne.jp>

<http://gensen.dl.itc.u-tokyo.ac.jp/>, <http://www.ryo.com/getsen/>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Hey! The above document had some coding errors, which are explained below:
Around line 86:
Non-ASCII character seen before =encoding in ''日本語の文章を適当に書く。';'. Assuming UTF-8
2007-06-10 perl v5.32.1

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

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