You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/12/08 18:39:22 UTC

[kibble-scanners] branch master updated: there's a value for this too.

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git


The following commit(s) were added to refs/heads/master by this push:
     new eac4ef9  there's a value for this too.
eac4ef9 is described below

commit eac4ef9944e37cf4452701725efaf9280732426d
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Dec 8 19:39:14 2017 +0100

    there's a value for this too.
---
 src/plugins/utils/tone.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/utils/tone.py b/src/plugins/utils/tone.py
index f570477..a347205 100644
--- a/src/plugins/utils/tone.py
+++ b/src/plugins/utils/tone.py
@@ -180,7 +180,7 @@ def picoTone(KibbleBit, bodies):
                 
                 mood['negative'] = doc['negativity'] # Use the direct Bayesian score from picoAPI
                 mood['positive'] = doc['positivity'] # Use the direct Bayesian score from picoAPI
-                mood['neutral'] = max(0, 1 - (abs(val - 0.5) * 2)) # Calc neutrality to favor a middle sentiment score, ignore high/low
+                mood['neutral'] = doc['neutrality'] # Calc neutrality to favor a middle sentiment score, ignore high/low
                 moods[int(doc['id'])] = mood # Replace moods[X] with the actual mood
                 
         else:

-- 
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].