sad_panda 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sad_panda/status_message.rb +2 -1
- data/lib/sad_panda/version.rb +1 -1
- metadata +1 -1
@@ -1885,7 +1885,8 @@ module SadPanda
|
|
1885
1885
|
# polarity unreadable; return a neutral score of zero
|
1886
1886
|
score = 0
|
1887
1887
|
else
|
1888
|
-
|
1888
|
+
polarity_values = polarity_score.values
|
1889
|
+
score = polarity_values.inject{ |sum, el| sum.to_f + el.to_f } / polarity_values.length
|
1889
1890
|
polarity_score = {}
|
1890
1891
|
end
|
1891
1892
|
if @verbose
|
data/lib/sad_panda/version.rb
CHANGED