AI-Classifier-Japanese
view release on metacpan or search on metacpan
use strict;
use Test::More;
use AI::Classifier::Japanese;
my $classifier = AI::Classifier::Japanese->new();
my $CATEGORY_POSITIVE = "positive";
my $CATEGORY_NEGATIVE = "negative";
$classifier->add_training_text("ãã®ãã", $CATEGORY_POSITIVE);
my @labels = $classifier->labels;
my $labels_num = $classifier->labels;
is($labels_num, 1);
is($labels[0], $CATEGORY_POSITIVE);
done_testing;
( run in 0.226 second using v1.01-cache-2.11-cpan-4d50c553e7e )