Lingua::JA::Categorize - Naive Bayes Classifier for Japanese document.
use Lingua::JA::Categorize; # generate my $categorizer = Lingua::JA::Categorize->new; $categorizer->generate($category_conf); $categorizer->save('save_file'); # categorize my $categorizer = Lingua::JA::Categorize->new; $categorizer->load('save_file'); my $result = $categorizer->categorize($text); print Dumper $result->score;
Lingua::JA::Categorize is a Naive Bayes classifier for Japanese document.
THIS MODULE IS IN ITS ALPHA QUALITY.
The constructor method.
This method accepts $text, and returns Lingua::JA::Categorize::Result object.
Training method of bayesian filter.
This generate primary data set from the category configuration.
Load the saved file (that is Storable).
Save the data to filename (that is Storable).
Accessor method to Lingua::JA::Categorize::Tokenizer.
Accessor method to Lingua::JA::Categorize::Categorizer.
Accessor method to Lingua::JA::Categorize::Generator.
takeshi miki <miki@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Lingua::JA::Categorize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::JA::Categorize
CPAN shell
perl -MCPAN -e shell install Lingua::JA::Categorize
For more information on module installation, please visit the detailed CPAN module installation guide.