Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harshalmittal4/add_emoji

The LSTM model (in keras) predicts the instinct of any input sentence and associates an emoji to it accordingly.
https://github.com/harshalmittal4/add_emoji

emoji keras lstm-model

Last synced: 2 days ago
JSON representation

The LSTM model (in keras) predicts the instinct of any input sentence and associates an emoji to it accordingly.

Awesome Lists containing this project

README

        

# Add_emoji
This project aims at predicting the instinct of any input sentence and then associates an emoji to it accordingly.
Two models are being used here : numpy model and LSTM implemented in Keras.

## Steps involved:
1) Words in each input sentence are first replaced with their corresponding indices and padding is done to make the length of each input the same.
2) Embedding layer is used which associates a 50 dimensional Glove vector representation to each index(each word) in the sentence.
3) LSTM model(graph) is built in keras.
4) Model is compiled and than trained on the training set.
5) Model is tested against the test set.

## Model (summarized using keras):
![alt text](https://github.com/harshalmittal4/Add_emoji/blob/master/model_lstm.png)

The accuracy obtained was 82% using 50 epochs.