last 0,000 visited. -223695 today.
> owa > ShogiBlog > 6
Ryuoh-sen 19-2
Yasumitsu SATO
Akira WATANABE
[162 / 162]  B'57 at last ... Sato won.
Products
ZShogi
PyZume
Download
Documents
Habu's Words
ZShogi on Plone
Let's try
MakeGame
MakePuzzle
Links
www.zope.org/Members/owa
www.coreblog.org
www.python.org
www.zope.org

6. JSpamFilter 0.1.3 released

 

JSpamFilter 0.1.3 was released on July 2nd 2008. JSpamFilter is a zope2 product to get a probability of spam, such as blog's comment. To install, the product requires spambayes-1.0.4. JSpamFilter provides wrapper methods of spambayes with unicode tokenaizer for japanese language.


You can download the JSpamFilter source.


To use JSpamFilter methods

To use JSpamFilter instance.

context.SpamDB.trainAsSpam(Comment, Name, Addr)
context.SpamDB.trainAsGood(Comment, Name, Addr)

To get probability.

context.SpamDB.prob(Comment, Name, Addr)

The minimum return value is 0.0, and the maximum is 1.0. The value 0.0 is good and 1.0 must be spam.

posted by owa at 6 July 2008 | Comments (0) | Trackbacks (0)
Comments
There are no comments.
Trackbacks
There are no trackbacks.
Post a comment














Copyright © 2002-2017 Shu KONNO, all rights reserved since 2002/10/26.