Lingua::JA::Summarize::Extract::Plugin::Parser::NgramSimple - a word parser by N-gram Simply
use strict; use warnings; use utf8; use Lingua::JA::Summarize::Extract; my $text = ''; my $text = '日本語の文章を適当に書く。'; my $summary = Lingua::JA::Summarize::Extract->extract($text, { plugins => [ 'ParserNgramSimple' ], gram => 2 }); print "$summary";
parse dose the word by using N-gram. all the character kinds are similarly treated. the number of N can be changed.
Kazuhiro Osawa <ko@yappo.ne.jp>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in ''日本語の文章を適当に書く。';'. Assuming UTF-8
To install Lingua::JA::Summarize::Extract, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::JA::Summarize::Extract
CPAN shell
perl -MCPAN -e shell install Lingua::JA::Summarize::Extract
For more information on module installation, please visit the detailed CPAN module installation guide.