Skip to content

Instantly share code, notes, and snippets.

@hanfried
Created April 4, 2019 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanfried/33e47f452920206fda4fced20bff625d to your computer and use it in GitHub Desktop.
Save hanfried/33e47f452920206fda4fced20bff625d to your computer and use it in GitHub Desktop.
Google NLP Response
{
"entities": [
{
"name": "Google",
"type": "ORGANIZATION",
"metadata": {
"mid": "/m/045c7b",
"wikipedia_url": "https://en.wikipedia.org/wiki/Google"
},
"salience": 0.20834001898765564,
"mentions": [
{
"text": {
"content": "Google",
"beginOffset": 9
},
"type": "PROPER"
}
]
},
{
"name": "Mountain View",
"type": "LOCATION",
"metadata": {
"wikipedia_url": "https://en.wikipedia.org/wiki/Mountain_View,_California",
"mid": "/m/0r6c4"
},
"salience": 0.20834001898765564,
"mentions": [
{
"text": {
"content": "Mountain View",
"beginOffset": 34
},
"type": "PROPER"
}
]
},
{
"name": "Sundar Pichai",
"type": "PERSON",
"metadata": {
"wikipedia_url": "https://en.wikipedia.org/wiki/Sundar_Pichai",
"mid": "/m/09gds74"
},
"salience": 0.17268365621566772,
"mentions": [
{
"text": {
"content": "Sundar Pichai",
"beginOffset": 127
},
"type": "PROPER"
}
]
},
{
"name": "phone",
"type": "CONSUMER_GOOD",
"salience": 0.10689005255699158,
"mentions": [
{
"text": {
"content": "phone",
"beginOffset": 80
},
"type": "COMMON"
}
]
},
{
"name": "users",
"type": "PERSON",
"salience": 0.09835875779390335,
"mentions": [
{
"text": {
"content": "users",
"beginOffset": 196
},
"type": "COMMON"
}
]
},
{
"name": "Android",
"type": "CONSUMER_GOOD",
"metadata": {
"mid": "/m/02wxtgw",
"wikipedia_url": "https://en.wikipedia.org/wiki/Android_(operating_system)"
},
"salience": 0.08804585039615631,
"mentions": [
{
"text": {
"content": "Android",
"beginOffset": 72
},
"type": "PROPER"
},
{
"text": {
"content": "Android",
"beginOffset": 217
},
"type": "PROPER"
}
]
},
{
"name": "Consumer Electronic Show",
"type": "EVENT",
"metadata": {
"wikipedia_url": "https://en.wikipedia.org/wiki/Consumer_Electronics_Show",
"mid": "/m/01p15w"
},
"salience": 0.057310283184051514,
"mentions": [
{
"text": {
"content": "Consumer Electronic Show",
"beginOffset": 93
},
"type": "PROPER"
}
]
},
{
"name": "keynote",
"type": "OTHER",
"salience": 0.032468121498823166,
"mentions": [
{
"text": {
"content": "keynote",
"beginOffset": 183
},
"type": "COMMON"
}
]
},
{
"name": "phones",
"type": "CONSUMER_GOOD",
"salience": 0.027563240379095078,
"mentions": [
{
"text": {
"content": "phones",
"beginOffset": 225
},
"type": "COMMON"
}
]
},
{
"name": "January 1, 2018 at 10:00am",
"metadata": {
"year": "2018",
"day": "1",
"month": "1"
},
"mentions": [
{
"text": {
"content": "January 1, 2018 at 10:00am",
"beginOffset": 149
}
}
]
},
{
"name": "00",
"metadata": {
"value": "0"
},
"mentions": [
{
"text": {
"content": "00",
"beginOffset": 171
}
}
]
},
{
"name": "1000",
"metadata": {
"value": "1000"
},
"mentions": [
{
"text": {
"content": "1000",
"beginOffset": 66
}
}
]
},
{
"name": "2018",
"metadata": {
"value": "2018"
},
"mentions": [
{
"text": {
"content": "2018",
"beginOffset": 160
}
}
]
},
{
"name": "10",
"metadata": {
"value": "10"
},
"mentions": [
{
"text": {
"content": "10",
"beginOffset": 168
}
}
]
},
{
"name": "1",
"metadata": {
"value": "1"
},
"mentions": [
{
"text": {
"content": "1",
"beginOffset": 157
}
}
]
}
],
"documentSentiment": {},
"language": "en"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment