[Spambayes-checkins] spambayes rates.py,1.1,1.2
Jeremy Hylton
jhylton@users.sourceforge.net
Sat, 07 Sep 2002 09:39:06 -0700
Update of /cvsroot/spambayes/spambayes
In directory usw-pr-cvs1:/tmp/cvs-serv22298
Modified Files:
rates.py
Log Message:
Change to work with mboxtest.py output.
Index: rates.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/rates.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** rates.py 5 Sep 2002 23:34:41 -0000 1.1
--- rates.py 7 Sep 2002 16:39:04 -0000 1.2
***************
*** 27,31 ****
new false positives: ['Data/Ham/Set2/66645.txt']
"""
! pat1 = re.compile(r'\s*Training on Data/').match
pat2 = re.compile(r'\s+false (positive|negative): (.*)').match
pat3 = re.compile(r"\s+new false (positives|negatives): \[(.+)\]").match
--- 27,31 ----
new false positives: ['Data/Ham/Set2/66645.txt']
"""
! pat1 = re.compile(r'\s*Training on ').match
pat2 = re.compile(r'\s+false (positive|negative): (.*)').match
pat3 = re.compile(r"\s+new false (positives|negatives): \[(.+)\]").match