NewsClassifier: Automating News Categorization: try it.
A naive Bayes classifier trained in your browser on 42 made-up headlines: type a headline and see the category probabilities and the words that decided it.
Try it
Move the controls; the chart and the sentence under it update.
Words the model sees after cleaning: club, owner (not in training), run, mayor, record, season.
Predicted class: Sports (83%). Words that pushed it most toward Sports rather than Politics: club, record, season.
Trained in your browser on 42 made-up headlines, 14 per class. This is a tiny naive Bayes model to show the idea; it is not the original model or its data.
Words the model sees after cleaning: club, owner (not in training), run, mayor, record, season.
Predicted class: Sports (83%). Words that pushed it most toward Sports rather than Politics: club, record, season.
Trained in your browser on 42 made-up headlines, 14 per class. This is a tiny naive Bayes model to show the idea; it is not the original model or its data.
The write-up this goes with: NewsClassifier: Automating News Categorization.