Welcome to the Sentiment Analysis Chat Application! π This application allows users to chat while analyzing the sentiment of their messages in real-time.
Real-Time Sentiment Analysis: Get instant feedback on whether your messages are positive, neutral, or negative! π’π‘π΄
Visual Sentiment Representation: View a Bar Graph showing the distribution of sentiments from your messages. π
Message Statistics: Track the total number of messages and their sentiment breakdown! π
Clear Chat History: Easily clear the chat for a fresh start! π§Ή
Save Chat History: Keep a record of your conversations in a text file! πΎ
- Clone this repository:
git clone https://github.com/kingshukmondal/sentiment_analysis.git cd sentiment-analysis-chat - Install the required packages:
pip install -r requirements.txt - Run the application:
python app.py
- Python 3.x
- NLTK library
- Tkinter for GUI
Make sure to install the required libraries for sentiment analysis:
pip install nltkYou may also need to download the VADER lexicon used for sentiment analysis:
import nltk
nltk.download('vader_lexicon')- Type your message in the input box and hit Enter or click the Send button! π¬
- View the sentiment analysis results along with a visual representation in the form of a pie chart! π₯§
- Check out the statistics to see how many messages you've sent and their sentiments! π
- Use the Clear button to reset the chat or Save to export your chat history.
Here are some screenshots of the application:
Contributions are welcome! If you'd like to enhance the app or add new features, feel free to fork the repository and submit a pull request.
- Thanks to NLTK for providing sentiment analysis tools.
- Special thanks to the open-source community for their inspiration and resources!
Feel free to reach out if you have any questions or suggestions! Happy chatting! π


