examples
examples copied to clipboard
Add unit test for lightweight SVM sentiment analysis
Overview
Added a new example notebook demonstrating Sentiment Analysis using Support Vector Machines (SVM) with TF-IDF features on the TweetEval dataset.
Details
- Implemented lightweight SVM model using scikit-learn.
- Used TF-IDF for text vectorization.
- Dataset: TweetEval (Positive / Negative / Neutral labels)
- Added example notebook:
Sentiment_Analysis_SVM_Scikit.ipynb - Added a small test file:
tests/test_sentiment_analysis_svm_scikit.py - Updated README with usage instructions.
Why this change
This example adds a simple, CPU-friendly SVM-based text classification workflow for educational purposes.
Testing
- All notebook cells executed successfully.
- Unit test (
pytest) passed successfully.