EmotionalAI is a machine learning model that classifies the given text to positive and negative sentiment.
- Install necessary modules with
sudo pip3 install -r requirements.txt
command. - Go to src folder (if you want to change paths of files and folders, go to src/config.py).
- Run
python3 train.py
to train and save the machine learning model. - Now Run
python3 app.py
and go to http://127.0.0.1:5000/ in your browser. - 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.
- Type in your text and hit the Get Results button.
- To run this app from Streamlit. Run
streamlit run streamlitapp.py
.
- 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.