Problem running naive Bayesian classifier from DDJ article
Hi all,
I bought the May 2005 issue of Dr. Dobb's Journal just so that I could read John Graham-Cumming's (excellent) article describing a perl implementation of a simple naive Bayesian classifier. I bought a magnifying glass just so that I could read the listing (no kidding!). I checked pretty carefully for typos, but it isn't running on my machine (Mandrake 10.0). I think the problem might be that I am lacking a certain perl library; the second line in the perl script is
# use DB_File
and using locate I can find no trace of any "DB_File" on my machine. (Is that a really silly comment? Is DB_File in fact some kind of library which I would need to run the perl script in question, or is it something else? I have no idea, because I am no programmer--- as I said, I bought this issue of DDJ only in order to try to enter and use this perl script.)
I can't find DB_File in the Debian archives, or figure out whether this is something I need and if so where to get it, or whether my problem is due to something else. Any suggestions?
TIA, Peufelon
|