A readable starting point for supervised text classification. This multinomial Naive Bayes implementation learns word frequencies per category, applies smoothing and exposes model scores. It abstains when no known term is present. Fictional messages exercise training, prediction and evaluation without customer data.
Included capabilities
- Supervised category training
- Smoothed log-probability calculations
- Abstention for unknown vocabulary
- Confusion matrix and per-class F1
- Separate training and test examples
Licence and getting started
Original code under the MIT licence, copyright 2026 STELLARR STUDIO. Personal and commercial use permitted with the licence notice retained. French and English guides included. Trademarks and dependencies retain their own rights.
Read the README for requirements, start commands, tests and deployment limits. Hosting, compute, external APIs and bespoke support are not included.
Included files
.gitignoreclassifier.pyexamples/test.jsonexamples/train.jsonkit.jsonLICENSEREADME.en.mdREADME.mdtest_classifier.pyTEST_REPORT.mdTHIRD_PARTY_NOTICES.mdverification.json