Update of /cvsroot/popfile/engine/Classifier
In directory sc8-pr-cvs1:/tmp/cvs-serv19388/Classifier
Modified Files:
Bayes.pm
Log Message:
Fix up the constructors so that they call the parent classes, add new parameter method to POPFile::Configuration, fix up calls to child and flush_child_data for proxies; various other minor tweaks. With this commit POPFile OO is limping along... my guess is the next commit and you'll be able to try it out
Index: Bayes.pm
===================================================================
RCS file: /cvsroot/popfile/engine/Classifier/Bayes.pm,v
retrieving revision 1.108
retrieving revision 1.109
diff -C2 -d -r1.108 -r1.109
*** Bayes.pm 3 Mar 2003 15:21:37 -0000 1.108
--- Bayes.pm 3 Mar 2003 22:01:30 -0000 1.109
***************
*** 34,38 ****
{
my $type = shift;
! my $self;
# Set this to 1 to get scores for individual words in message detail
--- 34,38 ----
{
my $type = shift;
! my $self = POPFile::Module->new();
# Set this to 1 to get scores for individual words in message detail
***************
*** 111,118 ****
# No default unclassified probability
! $self->config_( 'unclassified_probability', 0, 1 );
# The corpus is kept in the 'corpus' subfolder of POPFile
! $self->config_( 'corpus', 'corpus', 1 );
# Get the hostname for use in the X-POPFile-Link header
--- 111,118 ----
# No default unclassified probability
! $self->config_( 'unclassified_probability', 0 );
# The corpus is kept in the 'corpus' subfolder of POPFile
! $self->config_( 'corpus', 'corpus' );
# Get the hostname for use in the X-POPFile-Link header
|