[09.10.20] Filtering out neutral tweets
This commit is contained in:
parent
e19e1eac46
commit
0903b69b8e
@ -110,9 +110,10 @@ class Listener(StreamListener):
|
||||
if callSpamFilter(cleanedTweet) != 'spam':
|
||||
pos, neu, neg, compound = callSentimentAnalyser(cleanedTweet)
|
||||
|
||||
hourTweet = {'pos': pos, 'neu': neu, 'neg': neg, 'compound': compound}
|
||||
if compound != 0.0:
|
||||
hourTweet = {'pos': pos, 'neu': neu, 'neg': neg, 'compound': compound}
|
||||
|
||||
hourStack.append(hourTweet)
|
||||
hourStack.append(hourTweet)
|
||||
|
||||
|
||||
def collector(hashtag):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user