The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Lingua::JA::Categorize - a Naive Bayes Classifier for Japanese document.

SYNOPSIS

  use Lingua::JA::Categorize;

  # generate
  my $c = Lingua::JA::Categorize->new;
  $c->generate($category_conf);
  $c->save('save_file');

  # categorize
  my $c = Lingua::JA::Categorize->new;
  $c->load('save_file');
  my $result = $c->categorize($text);
  print Dumper $result->list;

DESCRIPTION

Lingua::JA::Categorize is a Naive Bayes classifier for Japanese document.

THIS MODULE IS IN ITS ALPHA QUALITY.

METHODS

new

categorize

generate

load

save

tokenizer

categorizer

generator

AUTHOR

takeshi miki <miki@cpan.org>

LICENSE

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

SEE ALSO