[14.10.20] Testing
This commit is contained in:
parent
fba738d690
commit
1d459420de
@ -117,7 +117,7 @@ def processTweet():
|
|||||||
if len(processStack) != 0:
|
if len(processStack) != 0:
|
||||||
for tweet in processStack:
|
for tweet in processStack:
|
||||||
|
|
||||||
removedLines = fixLines(str(tweet))
|
removedLines = fixLines(tweet["tweet"])
|
||||||
|
|
||||||
removedSpecialChars = cleanTweet(removedLines)
|
removedSpecialChars = cleanTweet(removedLines)
|
||||||
removedSpacing = removeSpacing(removedSpecialChars[0])
|
removedSpacing = removeSpacing(removedSpecialChars[0])
|
||||||
@ -140,7 +140,7 @@ def processTweet():
|
|||||||
pos, neu, neg, compound = callSentimentAnalyser(cleanedTweet)
|
pos, neu, neg, compound = callSentimentAnalyser(cleanedTweet)
|
||||||
|
|
||||||
if compound != 0.0 or neu <= 0.8:
|
if compound != 0.0 or neu <= 0.8:
|
||||||
hourTweet = {'pos': 1, 'neu': 1, 'neg': 1, 'compound': 1, 'type': ""}
|
hourTweet = {'pos': pos, 'neu': neu, 'neg': neg, 'compound': compound, 'type': tweet["type"]}
|
||||||
|
|
||||||
hourStack.append(hourTweet)
|
hourStack.append(hourTweet)
|
||||||
processStack.clear()
|
processStack.clear()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user