These four areas contained four canned stories. Two political and two entertainment. They can be used to seed the classifier (for two classifications).
Here you can put your own training text in with your own classification.
Paste in some unseen text and see how well the classifier does.
The javascript code used to perform the bayesian analysis.