Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Text Sentiment Analyzer

A simple web application that uses NLTK's VADER sentiment analysis tool to detect the sentiment of a given text input. Built using Flask and styled with modern HTML/CSS.

🚀 Features

  • Analyze sentiment of any English text (Positive, Neutral, or Negative)
  • Uses NLTK's VADER sentiment intensity analyzer
  • Clean, responsive UI with modern design
  • Fast and lightweight

📸 Screenshot

Screenshot

🛠️ Technologies Used

  • Python 3
  • Flask
  • HTML5 / CSS3
  • JavaScript (optional enhancements)
  • NLTK (VADER lexicon)

🔧 Setup Instructions

1. Clone the Repository

git clone https://github.com/therandomuser03/sentiment-analyzer.git
cd sentiment-analyzer

2. Create a Virtual Environment (Optional but Recommended)

python -m venv venv
source venv/bin/activate      # On Windows: venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Download VADER Lexicon

import nltk
nltk.download('vader_lexicon')

Alternatively, run this in the terminal:

python -c "import nltk; nltk.download('vader_lexicon')"

5. Run the App

python app.py

Open your browser and go to:

http://127.0.0.1:5000/

📁 Project Structure

sentiment-analyzer/
│
├── app.py
├── requirements.txt
├── static/
│   ├── style.css
│   └── script.js
├── templates/
│   └── index.html
├── README.md
└── screenshot.png   # Optional

📄 License

MIT License — feel free to use, modify, and distribute.

💡 Future Improvements

  • Add support for multiple languages
  • Include charts or visual feedback
  • Save analysis history
  • API version for external use

🤝 Contributions

Pull requests are welcome! If you find bugs or want to improve the UI/UX, feel free to contribute.

🌟 Acknowledgements

  • NLTK
  • VADER Sentiment Analysis
  • Flask framework

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages