Skip to content

Add unit test for lightweight SVM sentiment analysis#2

Open
vedika0806 wants to merge 1 commit intopycaret:mainfrom
vedika0806:sentiment-analysis-svm
Open

Add unit test for lightweight SVM sentiment analysis#2
vedika0806 wants to merge 1 commit intopycaret:mainfrom
vedika0806:sentiment-analysis-svm

Conversation

@vedika0806
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants