Design
bayesian.txt
Associated article: Naive Bayesian Text Classification
Tags: Design
Published source code accompanying the article by John Graham-Cumming in which he examines Bayesian text classification and implements it in Perl.
Naive Bayesian Text Classification
by John Graham-Cumming
Listing One
use strict;
use DB_File;
# Hash with two levels of keys: $words{category}{word} gives count of
# 'word' in 'category'. Tied to a DB_File to keep it persistent.
my %words;
...


