Skip to content

This Sentiment Analysis Tool is a lightweight web application built using Flask, designed to analyze the sentiment of user-provided text. It leverages the TextBlob library to perform natural language processing (NLP) and accurately determine whether the sentiment is positive, negative, or neutral.

Notifications You must be signed in to change notification settings

JPdev6/flask-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Flask Sentiment Analysis with TextBlob

Analyze text sentiments (positive, negative, or neutral) with this lightweight Flask application powered by TextBlob for Natural Language Processing (NLP).


🌟 Features

  • Real-Time Sentiment Analysis: Analyze text and classify sentiments instantly.
  • 🌐 Responsive Web Interface: Clean, modern, and mobile-friendly design.
  • 🎨 Dynamic Visual Feedback:
    • Positive Sentiment: ✅ Displayed in green.
    • Neutral Sentiment: 🔘 Displayed in gray.
    • Negative Sentiment: ❌ Displayed in red.
  • 🛠️ Built with Flask, TextBlob, and Bootstrap.

🛠️ Technologies Used

Technology Purpose
Python Backend logic and Flask framework
TextBlob Sentiment analysis and NLP functionality
HTML & CSS Frontend structure and styling
Bootstrap Responsive and modern web design
Render Hosting platform for deployment

🌐 Live Demo

🎉 Try the live application here: Live App on Render


🚀 Getting Started

Prerequisites

  • 🐍 Python 3.9+ installed on your system.
  • 📦 Dependencies listed in requirements.txt.

Installation Steps

  1. Clone the Repository:

    git clone https://github.com/your-username/flask-sentiment-analysis.git
    cd flask-sentiment-analysis
  2. Create and Activate a Virtual Environment:

  • On macOS/Linux:
  python3 -m venv venv
  source venv/bin/activate
  • On Windows:
  python -m venv venv
  venv\Scripts\activate
  1. Install Dependencies:
  • Run the following command to install required libraries:
   pip install -r requirements.txt
  • Run the Application Locally:
   python app.py
  1. Run the Application Locally:
    • Start the Flask application:
  python app.py
  1. Open the App in Your Browser:

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-name).
  3. Commit your changes (git commit -m "Added feature").
  4. Push to the branch (git push origin feature-name).
  5. Submit a Pull Request.

📧 Contact

Feel free to reach out if you have any questions or suggestions:


📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This Sentiment Analysis Tool is a lightweight web application built using Flask, designed to analyze the sentiment of user-provided text. It leverages the TextBlob library to perform natural language processing (NLP) and accurately determine whether the sentiment is positive, negative, or neutral.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published