Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/language/cloud-client/v1
- [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."
- Mentions:
- Name: "Bernie Sanders"
- Begin Offset : 0
- Content : Bernie Sanders
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 1
- Begin Offset : 100
- Content : Bernie
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 1
- Salience: 0.7287792563438416
- Sentiment: magnitude: 0.10000000149011612
- Mentions:
- Name: "some"
- Begin Offset : 27
- Content : some
- Magnitude : 0.699999988079071
- Sentiment : -0.699999988079071
- Type : 2
- Salience: 0.0999382957816124
- Sentiment: magnitude: 0.699999988079071
- score: -0.699999988079071
- Mentions:
- Name: "ass"
- Begin Offset : 77
- Content : ass
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 2
- Salience: 0.06378957629203796
- Sentiment:
- Mentions:
- Name: "shit"
- Begin Offset : 40
- Content : shit
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 2
- Salience: 0.06006946042180061
- Sentiment:
- Mentions:
- Name: "Obama"
- Begin Offset : 58
- Content : Obama
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 1
- Salience: 0.03630610555410385
- Sentiment:
- Mentions:
- Name: "Flint"
- Begin Offset : 84
- Content : Flint
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 1
- Salience: 0.011117316782474518
- Sentiment:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement