An easy-to-use Sentiment Analysis tool in Python using TextBlob library that analyzes the polarity of input text and returns the overall sentiment as well as the most positive and negative sentence. Perfect for sentiment analysis in natural language processing and machine learning projects. #Python #SentimentAnalysis #TextBlob #NLP #MachineLearning
- textblob
- textblob.exceptions
- os
-
The code uses TextBlob library to determine the sentiment polarity of the input text.
-
It asks the user to input some text, and then determines whether the sentiment is positive, negative, or neutral based on the polarity score.
-
It also identifies the most positive and most negative sentence in the input text.
-
Feel free to use this code in your projects.
-
Enjoy! and let me know what would you like to see in the future version of this project.
git clone https://github.com/AmirTyper/Sentiment-Analysis-Tool
cd Sentiment-Analysis-Tool
pip install -r requirements.txt
python -m textblob.download_corpora
python sentiment_analysis.py
The easiest way to support me is to click on the star (⭐) at the top of the GitHub page.
Developer's Telegram: click
Developer's Instagram: click
Developer's Twitter: click
My Website: amirtyper.ir