Perform text sentiment analysis on user-provided text using Flask, VADER Sentiment Analysis, and Python. This project demonstrates a simple web application that allows users to enter text, and it returns the sentiment of the text as either Positive, Negative, or Neutral.
- Input text analysis for sentiment: Enter text and click the "Analyse" button to determine its sentiment.
- Sentiment labels: Sentiment is categorized as Positive, Negative, or Neutral based on VADER Sentiment Analysis.
- User-friendly interface: Built with Flask and Bootstrap for a clean and responsive design.
- Easy to deploy: A Flask web application that can be hosted locally or deployed to platforms like Heroku.
These instructions will help you set up and run the project on your local machine.
- Python 3.7 or higher
- Flask 2.0 or higher
- VADER Sentiment Analysis 3.3.2 or higher
-
Clone the repository:
git clone https://github.com/Abadeolu/sentiment_analysis.git
-
Once cloned, Navigate to the project directory
cd your-repo
-
Install the required Python packages:
pip install -r requirements.txt
-
Usage: Run the Flask application:
python app.py
-
Open your web browser and navigate to http://localhost:5000 to access the application.
-
Enter your text in the input field and click the "Analyse" button to see the sentiment result.
-
Customization: You can customize the sentiment labels or the appearance of the web application by modifying the code in app.py and index.html.
Built With: . Flask . Vadar Sentiment Analysis
Acknowledgments: Special thanks to the creators and maintainers of Flask and VADER Sentiment Analysis. Enjoy analyzing text sentiment with this simple web application! If you have any questions or suggestions, please feel free to reach out.