yassersouri/classify-text

"20 Newsgroups" text classification with python

Archived
40
/ 100
Emerging

Implements comparative experiments across multiple feature representations (Bag of Words, TF, TF-IDF) and classifiers (Naive Bayes, SVM, k-NN) using scikit-learn, with evaluation via train-test splits and stratified k-fold cross-validation. Handles preprocessing quirks like UTF-8 incompatibility in source documents and supports both binary classification (likes vs. dislikes) and full 20-class multiclass scenarios. Results demonstrate TF-IDF with linear SVM achieving ~97% accuracy on binary tasks and ~89% on full 20-class classification.

147 stars. No commits in the last 6 months.

Archived No License Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 8 / 25
Community 22 / 25

How are scores calculated?

Stars

147

Forks

63

Language

Python

License

Last pushed

Nov 30, 2016

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/nlp/yassersouri/classify-text"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.