From 22014c008a9a71125fa9041dbc3bccf8045e6dd4 Mon Sep 17 00:00:00 2001 From: Johannes Filter Date: Mon, 12 Apr 2021 19:56:57 +0200 Subject: [PATCH] fix emoji removal --- cleantext/clean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleantext/clean.py b/cleantext/clean.py index 4f34135..d66e9b1 100644 --- a/cleantext/clean.py +++ b/cleantext/clean.py @@ -190,7 +190,7 @@ def remove_punct(text): def remove_emoji(text): - for x in UNICODE_EMOJI: + for x in UNICODE_EMOJI['en']: if x in text: text = text.replace(x, "") return text