A sentiment analysis tool that predicts the sentiment (positive, negative, or neutral) of text input. This project includes both a Flask web application and a Streamlit application.
sentiment_analysis.py: Core module containing the preprocessing and sentiment prediction logicsentiment_webapp.py: Flask web application for sentiment analysisstreamlit_app.py: Streamlit web application for sentiment analysisrequirements.txt: Dependencies for the projectrender.yaml: Configuration for deployment on Render
-
Install the required packages:
pip install -r requirements.txt -
Run the Streamlit app:
streamlit run streamlit_app.pyOr run the Flask app:
python sentiment_webapp.py
The project uses a logistic regression model trained on Twitter sentiment data.