Skip to content

nilsonsales/SentimentAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SentimentAnalysis

This project aims to build a model to classify the sentiment of a text in one of the three following categories: happiness, sadness or anger. This program was implemented using Python 3 and scikit-learn.

Setting up

Clone the project to your local machine and install the dependences listed in the requirements.txt file:

pip install -r requirements.txt

Running

Make sure to use Python3 to run the project:

python3 Main.py

Some logs and metrics will be shown while the models are being built. After some seconds you'll be able to enter your text in the terminal. You can see some output examples bellow:

Enter your message (0 to quit): I miss you
Sadness :(

Enter your message (0 to quit): I don't wanna know about it, I hate you!
Anger -.-

Enter your message (0 to quit): This place has many good reviews
Happiness :)

About

Extract the sentiment of a given phrase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages