Update of /cvsroot/popfile/engine/UI
In directory sc8-pr-cvs1:/tmp/cvs-serv17280/UI
Modified Files:
HTML.pm
Log Message:
change handling of bayes::{scores__} to reduce burden on forking
(Disables saving of scores where not needed, clears scores after where enabled)
Index: HTML.pm
===================================================================
RCS file: /cvsroot/popfile/engine/UI/HTML.pm,v
retrieving revision 1.131
retrieving revision 1.132
diff -C2 -d -r1.131 -r1.132
*** HTML.pm 15 Apr 2003 21:22:02 -0000 1.131
--- HTML.pm 16 Apr 2003 00:59:57 -0000 1.132
***************
*** 2871,2876 ****
$body .= "<table><tr><td class=\"top20\" valign=\"top\">\n";
$self->{classifier__}->classify_file($self->global_config_( 'msgdir' ) . "$self->{form_}{view}", $self);
! $body .= $self->{classifier__}->{scores__};
$body .= "</tr></table></td>\n</tr>\n";
}
--- 2871,2886 ----
$body .= "<table><tr><td class=\"top20\" valign=\"top\">\n";
+
+ # Enable saving of word-scores
+
+ $self->{classifier__}->toggle_score( 1 );
+
$self->{classifier__}->classify_file($self->global_config_( 'msgdir' ) . "$self->{form_}{view}", $self);
!
!
! $self->{classifier__}->toggle_score( 0 );
! $body .= $self->{classifier__}->get_scores();
! $self->{classifier__}->clear_scores();
!
$body .= "</tr></table></td>\n</tr>\n";
}
|