Extract phrase in the given text that is used to express the sentiment
Extract phrase in the given text that is used to express the sentiment. Capturing sentiment in language is important in these times where decisions and reactions are created and updated in seconds. But, which words actually lead to the sentiment description? This project aims to solve this problem.
Powered using Pytorch + hugggingface
Try it out.
git clone https://github.com/shahules786/twitter-emotions.git
cd twitter-emotions
sudo docker build --tag twitter-emotions:api .
sudo docker run -p 9999:9999 -it twitter-emotions:api python twitteremotions/app.py
Server will start running on port 9999 of localhost
Example
Installation for development
git clone https://github.com/shahules786/twitter-emotions.git
cd twitter-emotions
pip install -r requirements.txt
Train Model on your data
from twitteremotions.emotions import TwitterEmotions
emotions = TwitterEmotions()
emotions.train(train_path="data/train.csv", epochs=10, batch_size=32,