Hi there,
I'm trying to use part of the SpamBayes system, and combining it with
fuzzy logic to see what sort of effects I could get.
1. Presently, I'm running my stuff on a mac os 10.4.4 system and when
i did a python setup.py install, i got this error:
christopher-isaiah-funs-imac-g5:~/desktop/code wwjd2525$ python
setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
copying build/lib/.DS_Store -> /System/Library/Frameworks/
Python.framework/Versions/2.3/lib/python2.3/site-packages
copying build/lib/spambayes/.DS_Store -> /System/Library/Frameworks/
Python.framework/Versions/2.3/lib/python2.3/site-packages/spambayes
running install_scripts
copying build/scripts-2.3/sb_bnfilter.py -> /System/Library/
Frameworks/Python.framework/Versions/2.3/bin
error: /System/Library/Frameworks/Python.framework/Versions/2.3/bin/
sb_bnfilter.py: Permission denied
Any idea what can I do to get around it? I'm really new in all this. =\
2. Also, I tried running a script that was provided in the package,
called sb_mailsort.py. I did a python sb_mailsort.py -s 19602.elmx
(where 19602.elmx) is the e-mail I'm trying to classify, and I got this
Traceback (most recent call last):
File "sb_mailsort.py", line 187, in ?
main()
File "sb_mailsort.py", line 181, in main
print_message_score(msg, open(msg))
File "sb_mailsort.py", line 141, in print_message_score
bayes = CdbClassifier(open(DB_FILE, 'rb'))
IOError: [Errno 2] No such file or directory: '/Users/
wwjd2525/.spambayes/wordprobs.cdb'
Is this due to the fact that I've not installed my spambayes properly?
3. Lastly, (I really appreciate whoever who answers these questions)
is there python module that specifically tokens a mail and tells me
how many ham and spam words are in there? How do I train my sb using
ham and spam corpuses without disturbing any settings on my computer.
Warmest Regards,
Christopher Isaiah Fun
~ Faith is believing in God when life tells you otherwise.
___________________________________________________________
Yahoo! Personals - Subscribe now and get a free £10 Figleaves voucher http://advision.webevents.yahoo.com/figleaves
_______________________________________________
[email protected]
http://mail.python.org/mailman/listinfo/spambayes
Check the FAQ before asking: http://spambayes.sf.net/faq.html