This project is a web application for sentiment analysis. It allows users to input text and receive a sentiment analysis score indicating whether the sentiment is positive, negative, or neutral.
You can access the live web application here.
Figure 1:Shows the web add interface .
Figure 2: You can either add a CSV file or add a single line text to check its sentiment.
Figure 3: Result of sentiment analysis of CSV file .
Figure 4: Result of sentiment analysis of Text input.
- User Input: Users can input text directly into the web app.
- Sentiment Analysis: The app processes the input text and returns a sentiment score.
- Real-time Results: The sentiment analysis is performed in real-time, providing immediate feedback.
- Frontend: HTML, CSS, JavaScript
- Backend: Python, Flask
- Machine Learning: Scikit-learn, NLTK
- Deployment: Render
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/sentiment-analysis-webapp.git cd sentiment-analysis-webapp
-
Create and activate a virtual environment:
python -m venv venv .\venv\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Open your web browser and go to
http://127.0.0.1:5000/
to see the application in action.
- Open the web application.
- Enter the text you want to analyze in the input field.
- Click the "Analyze" button.
- View the sentiment analysis results displayed on the screen.
If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
If you have any questions or feedback, please feel free to contact me at [[email protected]].