Skip to content

EmotionalAI is a machine learning model which classify the given text into positive or negative sentiment.

License

Notifications You must be signed in to change notification settings

amitjoshi9627/EmotionalAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmotionalAI

By Amit Joshi

EmotionalAI is a machine learning model that classifies the given text to positive and negative sentiment.

How to Run:

  1. Install necessary modules with sudo pip3 install -r requirements.txt command.
  2. Go to src folder (if you want to change paths of files and folders, go to src/config.py).
  3. Run python3 train.py to train and save the machine learning model.
  4. Now Run python3 app.py and go to http://127.0.0.1:5000/ in your browser.
  5. You will see the home page click the Let's Go button (or got to http://127.0.0.1:5000/sentiment.html) to go to sentiment classifier page.
  6. Type in your text and hit the Get Results button.
  7. To run this app from Streamlit. Run streamlit run streamlitapp.py.

Inside the model

  • Dataset is provided in the data folder, which has been downloaded from here
  • The features are extracted using Distilbert from huggingface which is a smaller distilled version of bert.
  • Machine Learning model used was SVM.
  • Frontend made using Html, CSS and a little bit of JavaScript.
  • Backend made using Flask.

Please Give a 🌟 if you 👍 it.

About

EmotionalAI is a machine learning model which classify the given text into positive or negative sentiment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published