Algorithm-Bayesian
view release on metacpan or search on metacpan
lib/Algorithm/Bayesian.pm view on Meta::CPAN
=cut
sub new {
my $self = shift or croak;
my $s = shift;
$s->{HAMSTR} = 0 if !defined $s->{HAMSTR};
$s->{SPAMSTR} = 0 if !defined $s->{SPAMSTR};
bless {storage => $s}, $self;
}
=head2 getHam
my $num = $b->getHam($word);
Get C<$word> count in Ham.
=cut
( run in 0.295 second using v1.01-cache-2.11-cpan-de7293f3b23 )