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

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

Awesome Lists containing this project

README

          

🤩✨ Emojex 🧠💻





PyPI - Downloads


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.