daily pastebin goal
18%
SHARE
TWEET

entity_sentiment.py

lamiastella Mar 4th, 2018 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/language/cloud-client/v1
  2. [jalal@goku sentiment]$ python entity_sentiment.py  sentiment-entities-text "Bernie Sanders should take some of that shit he throws at Obama and take his ass to Flint. Be bold, Bernie."
  3. Mentions:
  4. Name: "Bernie Sanders"
  5.   Begin Offset : 0
  6.   Content : Bernie Sanders
  7.   Magnitude : 0.0
  8.   Sentiment : 0.0
  9.   Type : 1
  10.   Begin Offset : 100
  11.   Content : Bernie
  12.   Magnitude : 0.0
  13.   Sentiment : 0.0
  14.   Type : 1
  15. Salience: 0.7287792563438416
  16. Sentiment: magnitude: 0.10000000149011612
  17.  
  18.  
  19. Mentions:
  20. Name: "some"
  21.   Begin Offset : 27
  22.   Content : some
  23.   Magnitude : 0.699999988079071
  24.   Sentiment : -0.699999988079071
  25.   Type : 2
  26. Salience: 0.0999382957816124
  27. Sentiment: magnitude: 0.699999988079071
  28. score: -0.699999988079071
  29.  
  30.  
  31. Mentions:
  32. Name: "ass"
  33.   Begin Offset : 77
  34.   Content : ass
  35.   Magnitude : 0.0
  36.   Sentiment : 0.0
  37.   Type : 2
  38. Salience: 0.06378957629203796
  39. Sentiment:
  40.  
  41. Mentions:
  42. Name: "shit"
  43.   Begin Offset : 40
  44.   Content : shit
  45.   Magnitude : 0.0
  46.   Sentiment : 0.0
  47.   Type : 2
  48. Salience: 0.06006946042180061
  49. Sentiment:
  50.  
  51. Mentions:
  52. Name: "Obama"
  53.   Begin Offset : 58
  54.   Content : Obama
  55.   Magnitude : 0.0
  56.   Sentiment : 0.0
  57.   Type : 1
  58. Salience: 0.03630610555410385
  59. Sentiment:
  60.  
  61. Mentions:
  62. Name: "Flint"
  63.   Begin Offset : 84
  64.   Content : Flint
  65.   Magnitude : 0.0
  66.   Sentiment : 0.0
  67.   Type : 1
  68. Salience: 0.011117316782474518
  69. Sentiment:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top