https://github.com/marcelo-earth/emojex
🐍🤩 Python package that turns popular culture text into emojis powered with OpenAI GPT-3 NLP engine
https://github.com/marcelo-earth/emojex
emojis gpt-3 natural-language-processing nlp openai python python-package
Last synced: about 2 months ago
JSON representation
🐍🤩 Python package that turns popular culture text into emojis powered with OpenAI GPT-3 NLP engine
- Host: GitHub
- URL: https://github.com/marcelo-earth/emojex
- Owner: marcelo-earth
- License: mit
- Created: 2021-05-07T02:09:00.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-28T16:26:27.000Z (over 3 years ago)
- Last Synced: 2026-03-05T17:06:22.406Z (3 months ago)
- Topics: emojis, gpt-3, natural-language-processing, nlp, openai, python, python-package
- Language: Python
- Homepage: https://pypi.org/project/emojex/
- Size: 46.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🤩✨ Emojex 🧠💻
Converter of popular culture texts to emoji
## 💻 Core Development
The `get_emoji` function is a function that takes in a piece of text and an optional parameter called max_tokens. It uses the OpenAI API to generate a text completion based on a prompt that includes a list of different texts and their corresponding emojis, followed by the input text and a colon.
The `max_tokens` parameter determines the maximum number of tokens (i.e. words or word-like units) that the generated text completion can have. The function also sets some other parameters for the text completion, such as the temperature, top_p, frequency penalty, presence penalty, and stop, which control the style and content of the generated text. Finally, the function returns the text completion generated by the OpenAI API.
## 🐍 How to use
Install emojex module:
```bash
pip install emojex
```
## 🤲 Contributing
Do you would like to contribute? Do you want to be the author of a new feature? Awesome! please fork the repository and make changes as you like. [Pull requests](https://github.com/360macky/emojex/pulls) are warmly welcome.
## 📃 License
Distributed under the MIT License.
See [`LICENSE`](./LICENSE) for more information.