Acme-Samurai
view release on metacpan or search on metacpan
lib/Acme/Samurai.pm view on Meta::CPAN
our $VERSION = '0.04';
use File::ShareDir qw/dist_file/;
use Lingua::JA::Alphabet::Yomi qw/alphabet2yomi/;
use Lingua::JA::Numbers qw/num2ja/;
use Unicode::Japanese qw/unijp/;
use Text::Mecabist;
sub gozaru {
my $self = bless { }, shift;
my $text = shift // "";
my $parser = Text::Mecabist->new({
node_format => '%m,%H',
unk_format => '%m,%H',
bos_format => '%m,%H',
eos_format => '%m,%H',
userdic => dist_file('Acme-Samurai', Text::Mecabist->encoding->name . '.dic'),
});
( run in 1.072 second using v1.01-cache-2.11-cpan-de7293f3b23 )