![]() |
![]()
| ![]() |
![]()
NAMELingua::JA::Summarize::Extract - summary generator for Japanese SYNOPSISuse 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' }); DESCRIPTIONLingua::JA::Summarize::Extract is a summary generator for Japanese text. The extraction method can be changed with the plug-in mechanism. METHODS
OPTIONSthe content of processing can be changed by passing the constructor the options.
thing to refer to POD of each plugin when you want to examine other options. THANKS TOTatsuhiko Miyagawa AUTHORKazuhiro Osawa <ko@yappo.ne.jp> SEE ALSO<http://gensen.dl.itc.u-tokyo.ac.jp/>, <http://www.ryo.com/getsen/> LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
|