Skip to content

This project provides a simple script for determining the sentiment of a text input using TextBlob library in Python. It also returns the most positive and most negative sentence in the input text. The script can be used as a standalone tool or integrated into other projects.

License

Notifications You must be signed in to change notification settings

AmirTyper/Sentiment-Analysis-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This project provides a simple script for determining the sentiment of a text input using TextBlob library in Python. It also returns the most positive and most negative sentence in the input text. The script can be used as a standalone tool or integrated into other projects.

Topics

Resources

License

Stars

Watchers

Forks

Languages