Last active
November 30, 2017 03:42
-
-
Save grapswiz/ebe7c6fe138553a421bc06f5fa75c4af to your computer and use it in GitHub Desktop.
try entitySentiment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET https://language.googleapis.com/v1beta2/documents:analyzeEntitySentiment?key=xxxxx | |
{ | |
"document":{ | |
"type":"PLAIN_TEXT", | |
"content":"Chimera Station might seem like a simple worker placement game, but the evolving workers (that have awesome parts you put together) and the great combo plays makes it so much more. It's a great game that I highly recommend to any euro fans out there" | |
}, | |
"encodingType":"UTF8" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"entities": [ | |
{ | |
"name": "Chimera Station", | |
"type": "ORGANIZATION", | |
"metadata": {}, | |
"salience": 0.6884859, | |
"mentions": [ | |
{ | |
"text": { | |
"content": "Chimera Station", | |
"beginOffset": 0 | |
}, | |
"type": "PROPER", | |
"sentiment": { | |
"magnitude": 0, | |
"score": 0 | |
} | |
} | |
], | |
"sentiment": { | |
"magnitude": 1.4, | |
"score": 0.3 | |
} | |
}, | |
{ | |
"name": "worker placement game", | |
"type": "OTHER", | |
"metadata": {}, | |
"salience": 0.08484528, | |
"mentions": [ | |
{ | |
"text": { | |
"content": "worker placement game", | |
"beginOffset": 41 | |
}, | |
"type": "COMMON", | |
"sentiment": { | |
"magnitude": 0.9, | |
"score": 0.9 | |
} | |
} | |
], | |
"sentiment": { | |
"magnitude": 0.9, | |
"score": 0.9 | |
} | |
}, | |
{ | |
"name": "workers", | |
"type": "PERSON", | |
"metadata": {}, | |
"salience": 0.058232278, | |
"mentions": [ | |
{ | |
"text": { | |
"content": "workers", | |
"beginOffset": 81 | |
}, | |
"type": "COMMON", | |
"sentiment": { | |
"magnitude": 0.4, | |
"score": 0.4 | |
} | |
} | |
], | |
"sentiment": { | |
"magnitude": 0.4, | |
"score": 0.4 | |
} | |
}, | |
{ | |
"name": "parts", | |
"type": "OTHER", | |
"metadata": {}, | |
"salience": 0.05116866, | |
"mentions": [ | |
{ | |
"text": { | |
"content": "parts", | |
"beginOffset": 108 | |
}, | |
"type": "COMMON", | |
"sentiment": { | |
"magnitude": 0.9, | |
"score": 0.9 | |
} | |
} | |
], | |
"sentiment": { | |
"magnitude": 0.9, | |
"score": 0.9 | |
} | |
}, | |
{ | |
"name": "combo plays", | |
"type": "EVENT", | |
"metadata": {}, | |
"salience": 0.04694421, | |
"mentions": [ | |
{ | |
"text": { | |
"content": "combo plays", | |
"beginOffset": 146 | |
}, | |
"type": "COMMON", | |
"sentiment": { | |
"magnitude": 0.8, | |
"score": 0.8 | |
} | |
} | |
], | |
"sentiment": { | |
"magnitude": 0.8, | |
"score": 0.8 | |
} | |
}, | |
{ | |
"name": "game", | |
"type": "WORK_OF_ART", | |
"metadata": {}, | |
"salience": 0.042875517, | |
"mentions": [ | |
{ | |
"text": { | |
"content": "game", | |
"beginOffset": 194 | |
}, | |
"type": "COMMON", | |
"sentiment": { | |
"magnitude": 0.9, | |
"score": 0.9 | |
} | |
} | |
], | |
"sentiment": { | |
"magnitude": 1.1, | |
"score": 0.5 | |
} | |
}, | |
{ | |
"name": "more", | |
"type": "OTHER", | |
"metadata": {}, | |
"salience": 0.015670365, | |
"mentions": [ | |
{ | |
"text": { | |
"content": "more", | |
"beginOffset": 175 | |
}, | |
"type": "COMMON", | |
"sentiment": { | |
"magnitude": 0, | |
"score": 0 | |
} | |
} | |
], | |
"sentiment": { | |
"magnitude": 0, | |
"score": 0 | |
} | |
}, | |
{ | |
"name": "fans", | |
"type": "PERSON", | |
"metadata": {}, | |
"salience": 0.011777749, | |
"mentions": [ | |
{ | |
"text": { | |
"content": "fans", | |
"beginOffset": 235 | |
}, | |
"type": "COMMON", | |
"sentiment": { | |
"magnitude": 0, | |
"score": 0 | |
} | |
} | |
], | |
"sentiment": { | |
"magnitude": 0, | |
"score": 0 | |
} | |
} | |
], | |
"language": "en" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment