Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Emoji Prediction for a given sentence using Deep Learning Models - RNN and LSTM

Notifications You must be signed in to change notification settings

marcoscale98/Emoji-Prediction

 
 

Repository files navigation

Emoji-Prediction

image

Emojis are the incredible way of expressing yourself.Therefore, our machines should also be aware of the appropriate emoji to be used at the right time. Thus, this project does the same.
In this project, the model is predicting emoji's according to a given sentence using Deep Learning Models.

Input

Text data consiting of different sentences along with the labels. Labels represent a particular emoji representing the sentence.

  • test_emoji.csv - for testing our model
  • train_emoji.csv - for training our model

Algorithm's Used

-RNN
-LSTM

Emoji Prediction.ipynb
This python script contains the code for both the models and their predictions.

Result

LSTM worked better than RNN i.e. accuracy of the model is more by using LSTM than RNN.
When we move from RNN to LSTM, we are introducing more & more controlling knobs, which control the flow and mixing of Inputs as per trained Weights. And thus, bringing in more flexibility in controlling the outputs. So, LSTM gives us the most Control-ability and thus, Better Results. But also comes with more Complexity and Operating Cost.

Additional Files

In this project, I have used the 6B 50D glove vector to build embedding matrix of words available in the glove vector.
Download the 6B.50.50d.txt file and extract the file in the same directory as that of the code.
Downloading Link-> glove.6B.50D.txt

About

Emoji Prediction for a given sentence using Deep Learning Models - RNN and LSTM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 85.3%
  • Python 14.7%