{"id":14970755,"url":"https://github.com/kiritoind/emojify-with-lstm","last_synced_at":"2026-03-06T22:02:01.249Z","repository":{"id":255306566,"uuid":"849182751","full_name":"kiritoInd/Emojify-With-LSTM","owner":"kiritoInd","description":"Long Short-Term Memory (LSTM) model to predict emojis based on the input sentence","archived":false,"fork":false,"pushed_at":"2024-08-29T06:07:56.000Z","size":80854,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T13:34:37.715Z","etag":null,"topics":["emojis","lstm","neural-network","python","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiritoInd.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-29T06:04:06.000Z","updated_at":"2024-08-29T06:10:50.000Z","dependencies_parsed_at":"2024-08-29T07:42:45.702Z","dependency_job_id":null,"html_url":"https://github.com/kiritoInd/Emojify-With-LSTM","commit_stats":null,"previous_names":["kiritoind/emojify-with-lstm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kiritoInd/Emojify-With-LSTM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiritoInd%2FEmojify-With-LSTM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiritoInd%2FEmojify-With-LSTM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiritoInd%2FEmojify-With-LSTM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiritoInd%2FEmojify-With-LSTM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiritoInd","download_url":"https://codeload.github.com/kiritoInd/Emojify-With-LSTM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiritoInd%2FEmojify-With-LSTM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30200756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emojis","lstm","neural-network","python","tensorflow"],"created_at":"2024-09-24T13:44:05.862Z","updated_at":"2026-03-06T22:02:01.213Z","avatar_url":"https://github.com/kiritoInd.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emojify Your Sentence with LSTM\n\nThis project uses a Long Short-Term Memory (LSTM) model to predict emojis based on the input sentence. The model has been trained with an accuracy of 86% and is saved in the `emojify.h5` file. Additionally, a Flask application is provided to submit POST requests for emoji conversion. There is also a Jupyter Notebook available to help you get familiar with the project.\n\n## Preview\n\n\u003cimg src = \"images/image.png\"\u003e\n\n## Project Structure\n\n- `emojfier.h5`: The trained LSTM model.\n- `Server.py`: The Flask application for handling POST requests.\n- `EmojifierUsingLSTMs.ipynb`: A Jupyter Notebook to get familiar with the project and understand the model training process.\n- `emo_utils.py`: utils.\n\n## Getting Started\n\n### Prerequisites\n\n- Python 3.x\n- Flask\n- TensorFlow\n- Jupyter Notebook\n\n### Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/kiritoInd/Emojify-With-LSTM.git\n    cd Emojify-With-LSTM\n    ```\n\n2. Install the required packages:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n### Usage\n\n#### Running the Flask Application\n\n1. Start the Flask server:\n    ```bash\n    python server.py\n    ```\n\n2. Send a POST request to the server to convert a sentence to an emoji:\n    ```bash\n    curl -X POST -H \"Content-Type: application/json\" -d '{\"sentence\": \"your sentence here\"}' http://127.0.0.1:5000/predict\n    ```\n\n#### Using the Jupyter Notebook\n\n1. Open the Jupyter Notebook:\n    ```bash\n    jupyter notebook notebook.ipynb\n    ```\n\n2. Follow the instructions in the notebook to understand the model training process and how to use the model for predictions.\n\n## Model Details\n\nThe LSTM model is trained on a dataset of sentences and their corresponding emojis. The model architecture and training process are detailed in the Jupyter Notebook.\n\n```\n┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓\n┃ Layer (type)                    ┃ Output Shape           ┃       Param # ┃\n┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩\n│ input_layer (InputLayer)        │ (None, 10)             │             0 │\n├─────────────────────────────────┼────────────────────────┼───────────────┤\n│ embedding_1 (Embedding)         │ (None, 10, 50)         │    20,000,050 │\n├─────────────────────────────────┼────────────────────────┼───────────────┤\n│ lstm (LSTM)                     │ (None, 10, 128)        │        91,648 │\n├─────────────────────────────────┼────────────────────────┼───────────────┤\n│ dropout (Dropout)               │ (None, 10, 128)        │             0 │\n├─────────────────────────────────┼────────────────────────┼───────────────┤\n│ lstm_1 (LSTM)                   │ (None, 128)            │       131,584 │\n├─────────────────────────────────┼────────────────────────┼───────────────┤\n│ dropout_1 (Dropout)             │ (None, 128)            │             0 │\n├─────────────────────────────────┼────────────────────────┼───────────────┤\n│ dense (Dense)                   │ (None, 5)              │           645 │\n├─────────────────────────────────┼────────────────────────┼───────────────┤\n│ activation (Activation)         │ (None, 5)              │             0 │\n└─────────────────────────────────┴────────────────────────┴───────────────┘\n```\n\n## Contributing\n\nFeel free to fork this repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiritoind%2Femojify-with-lstm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiritoind%2Femojify-with-lstm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiritoind%2Femojify-with-lstm/lists"}