From bf66d954ded220b345d7af8100ab2009e23c8364 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 5 Aug 2021 14:55:14 +0200 Subject: [PATCH] adding ' exclusion --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index bac6d14..3ef492d 100644 --- a/main.py +++ b/main.py @@ -46,7 +46,7 @@ class Listener(StreamListener): except AttributeError: tweet = status.text.lower() # recovery of the last "usable" word of the tweet - tweetText = sub(r"https?:\/\/\S+| *\?+| *!+| *,+|-|~|\.+|…|\^+|@\S+" + f"|{emojis()}", " ", tweet) # deletion with space + tweetText = sub(r"https?:\/\/\S+| *\?+| *!+| *,+|-|~|\.+|…|\^+|@\S+| *\'+" + f"|{emojis()}", " ", tweet) # deletion with space tweetText = sub(r"(?<=ui)i+|(?<=na)a+(?