Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.8 KB

File metadata and controls

41 lines (32 loc) · 1.8 KB

Sentiment-Analysis-Tool

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



Dependencies

  • textblob
  • textblob.exceptions
  • os

Notes

  • 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.

Usage

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

Support me

The easiest way to support me is to click on the star (⭐) at the top of the GitHub page.

Contact me

Developer's Telegram: click
Developer's Instagram: click
Developer's Twitter: click
My Website: amirtyper.ir