This project predicts whether a text review is positive or negative using:
- TF-IDF Vectorization for text preprocessing
- Logistic Regression for classification
The dataset is taken from scikit-learn (20 Newsgroups sample).
- Clean project structure
- Preprocessing with TF-IDF
- Binary classification (positive/negative sentiment)
- Accuracy evaluation with classification report
# Clone the repository
git clone https://github.com/<your-username>/sentiment-analysis.git
cd sentiment-analysis
# Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows
source venv/bin/activate # Mac/Linux
# Install dependencies
pip install -r requirements.txt