From ab669a1ed7b3976571fd82bbe80774861cc941ac Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Tue, 13 Oct 2020 09:36:20 +0100 Subject: [PATCH] [13.10.20] Testing --- src/tweets/collector.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tweets/collector.py b/src/tweets/collector.py index a2f6492..01a715f 100644 --- a/src/tweets/collector.py +++ b/src/tweets/collector.py @@ -116,38 +116,38 @@ def processTweet(text, type): log("hourStack size :: [{}]".format(len(hourStack)), "INFO") - # log("Processing [{}] Tweet...".format(text), 'INFO') + log("Processing [{}] Tweet...".format(text), 'INFO') removedLines = fixLines(text) - # log("fixLines", 'DEBUG') + log("fixLines", 'DEBUG') removedSpecialChars = cleanTweet(removedLines) - # log("cleanTweet", 'DEBUG') + log("cleanTweet", 'DEBUG') removedSpacing = removeSpacing(removedSpecialChars[0]) - # log("removeSpacing", 'DEBUG') + log("removeSpacing", 'DEBUG') tweetLength = checkLength(removedSpacing) - # log("checkLength", 'DEBUG') + log("checkLength", 'DEBUG') if tweetLength == True: checkIfEnglish = detectLaguage(removedSpecialChars[0]) - # log("Boop2", 'DEBUG') + log("Boop2", 'DEBUG') if checkIfEnglish == True: tweetText = remove_non_ascii(removedSpacing) - # log("Boop3", 'DEBUG') + log("Boop3", 'DEBUG') # log("Cleaned Tweet: {}".format(tweetText), 'INFO') cleanedTweet = tweetText + ' ' + removedSpecialChars[1] if callSpamFilter(cleanedTweet) != 'spam': - # log("After spam call", 'DEBUG') + log("After spam call", 'DEBUG') pos, neu, neg, compound = callSentimentAnalyser(cleanedTweet) - # log("After Sentiment Call", 'DEBUG') + log("After Sentiment Call", 'DEBUG') if compound != 0.0 | neu <= 0.8: log("if not 0.0 or above 0.8", 'DEBUG')