← Projects

TF-IDF Classifier

Study project

Small supervised NLP lab: character TF-IDF features with a Random Forest, served over Flask.

About


A hands-on ML exercise while learning supervised text classification. Short free-form text is vectorized with character 7-gram TF-IDF, then classified with a Random Forest selected after comparing several scikit-learn models.

The trained estimator is persisted with joblib and served from a small Flask endpoint on PythonAnywhere for local demos. Not a product; a study tool for feature extraction, model selection, and basic inference packaging.

Notes


  • Character 7-gram TF-IDF features for short, noisy text
  • Compared 10 algorithms with hyperparameter search and standard classification metrics
  • Flask REST API with joblib model persistence so inference runs without retraining each request

Stack


FlaskPythonPythonAnywherescikit-learnNLTKpandasnumpyJupyter

Stills


1 / 3 · click to enlarge