How to use the emot.emoji function in emot

To help you get started, we’ve selected a few emot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nouhadziri / THRED / thred / util / nlp.py View on Github external
def _strip_emojis(text):
    emojis = set([emoji['value'] for emoji in emot.emoji(text)])

    normalized = text
    for emoji in emojis:
        normalized = normalized.replace(emoji, '')

    return normalized

emot

Emoji and Emoticons detection package for Python

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis