examples icon indicating copy to clipboard operation
examples copied to clipboard

Add unit test for lightweight SVM sentiment analysis

Open vedika0806 opened this issue 1 month ago • 0 comments

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.

vedika0806 avatar Oct 11 '25 20:10 vedika0806