HomeData ScienceBag-of-Words vs TF-IDF: Tweet Sentiment Classifier

🐦 Bag-of-Words vs TF-IDF: Tweet Sentiment Classifier

Watch a live nearest-centroid classifier sort tweets into positive/negative/neutral in a 3D word-weight space, and see how switching Bag-of-Words counts for TF-IDF re-weighting reshapes the space and changes accuracy.

Data Science3DModerate60 FPS
bag-of-words-vs-tfidf-tweet-sentiment-classification ↗ Open standalone
⚙ Under the hood

Watch a live nearest-centroid classifier sort tweets into positive/negative/neutral in a 3D word-weight space, and see how switching Bag-of-Words counts for TF-IDF re-weighting reshapes the space and changes accuracy.

Three.jsnlpsentiment-analysistfidfbag-of-wordstext-classificationInstancedMesh

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)