Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed variable name error
  • Loading branch information
puneithk committed Jul 20, 2016
commit aff93ad794f89e1bf14b095a5ac372271ae2c24c
4 changes: 2 additions & 2 deletions language/movie_nl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ def get_sentiment_entities(service, document):
positive_sentiments = [
polarity for polarity, magnitude in sentiments if polarity > 0.0]

negative = sum(negative_sentiment)
positive = sum(positive_sentiment)
negative = sum(negative_sentiments)
positive = sum(positive_sentiments)
total = positive + negative

return (total, entities)
Expand Down