From: <ssc...@us...> - 2003-04-19 11:53:59
|
Update of /cvsroot/popfile/engine/Classifier In directory sc8-pr-cvs1:/tmp/cvs-serv28864 Modified Files: Tag: v0/18/1 Bayes.pm Log Message: fix odd return value from classify_file for some messages: "unclassified " No idea where that came from Index: Bayes.pm =================================================================== RCS file: /cvsroot/popfile/engine/Classifier/Bayes.pm,v retrieving revision 1.107.2.3 retrieving revision 1.107.2.4 diff -C2 -d -r1.107.2.3 -r1.107.2.4 *** Bayes.pm 19 Apr 2003 11:22:46 -0000 1.107.2.3 --- Bayes.pm 19 Apr 2003 11:53:55 -0000 1.107.2.4 *************** *** 438,442 **** close PARAMS; } else { ! write_parameters(); } --- 438,442 ---- close PARAMS; } else { ! $self->write_parameters(); } *************** *** 596,600 **** # If the user has not defined any buckets then we escape here return unclassified ! return "unclassified " if ( $#buckets == -1 ); # The score hash will contain the likelihood that the given message is in each --- 596,600 ---- # If the user has not defined any buckets then we escape here return unclassified ! return "unclassified" if ( $#buckets == -1 ); # The score hash will contain the likelihood that the given message is in each |