Lingua::JA::Summarize::Extract::Plugin::Parser::Trim - a simple word parser
use strict;
use warnings;
use utf8;
use Lingua::JA::Summarize::Extract;
my $text = '';
my $text = '日本語の文章を適当に書く。';
my $summary = Lingua::JA::Summarize::Extract->extract($text, { plugins => [ 'Parser::Trim' ] });
print "$summary";
sentences are divided by the character kind. you can change the small size of
the string.
- latin_size
- latin character
- kana_size
- katakana character
- han_size
- kanji character
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.
Hey! The above document had some coding errors, which are explained
below:
- Around line 37:
- Non-ASCII character seen before =encoding in
''日本語の文章を適当に書く。';'.
Assuming UTF-8