Compare rule-based and neural network sentiment analysis in real-time
How do sentiment analysis models work? This demo compares two fundamentally different approaches:
Uses a sentiment lexicon with ~100+ words rated from -3 (very negative) to +3 (very positive).
✓ Fast, interpretable, no training needed ✗ Limited vocabulary, misses context
A neural network with 6 transformer layers, trained on the Stanford Sentiment Treebank (SST-2).
✓ ~90% accuracy, handles nuance ✗ Slower, requires download, less interpretable
Based on rule-based lexicon scores (transformer models don't provide word-level attribution)
Analyze text to see word-level sentiment contributions
Simple keyword matching - not aspect-based sentiment analysis
Keywords will appear here after analysis