Skip to content

Instantly share code, notes, and snippets.

@fumikito
Created July 21, 2016 05:07
Show Gist options
  • Save fumikito/c5e56171d2c9d086b3d6f985c18e7d5e to your computer and use it in GitHub Desktop.
Save fumikito/c5e56171d2c9d086b3d6f985c18e7d5e to your computer and use it in GitHub Desktop.
https://hametuha.com/news/article/16685/ この記事を Google Natural Language API のtextEntities にかけてみた
{
"entities": [
{
"name": "村田沙耶香",
"type": "PERSON",
"metadata": {
"wikipedia_url": "http://ja.wikipedia.org/wiki/%E6%9D%91%E7%94%B0%E6%B2%99%E8%80%B6%E9%A6%99"
},
"salience": 0,
"mentions": [
{
"text": {
"content": "村田沙耶香",
"beginOffset": 39
}
},
{
"text": {
"content": "村田沙耶香",
"beginOffset": 204
}
},
{
"text": {
"content": "村田沙耶香",
"beginOffset": 749
}
}
]
},
{
"name": "コンビニ人間",
"type": "WORK_OF_ART",
"metadata": {},
"salience": 0,
"mentions": [
{
"text": {
"content": "コンビニ人間",
"beginOffset": 57
}
}
]
},
{
"name": "萩原浩",
"type": "PERSON",
"metadata": {},
"salience": 0,
"mentions": [
{
"text": {
"content": "萩原浩",
"beginOffset": 93
}
}
]
},
{
"name": "海の見える理髪店",
"type": "WORK_OF_ART",
"metadata": {},
"salience": 0,
"mentions": [
{
"text": {
"content": "海の見える理髪店",
"beginOffset": 105
}
}
]
},
{
"name": "群像新人賞",
"type": "PERSON",
"metadata": {
"wikipedia_url": "http://ja.wikipedia.org/wiki/%E7%BE%A4%E5%83%8F%E6%96%B0%E4%BA%BA%E6%96%87%E5%AD%A6%E8%B3%9E"
},
"salience": 0,
"mentions": [
{
"text": {
"content": "群像新人賞",
"beginOffset": 254
}
}
]
},
{
"name": "三島賞",
"type": "LOCATION",
"metadata": {
"wikipedia_url": "http://ja.wikipedia.org/wiki/%E4%B8%89%E5%B3%B6%E7%94%B1%E7%B4%80%E5%A4%AB%E8%B3%9E"
},
"salience": 0,
"mentions": [
{
"text": {
"content": "三島賞",
"beginOffset": 326
}
}
]
},
{
"name": "野間文芸新人賞",
"type": "PERSON",
"metadata": {
"wikipedia_url": "http://ja.wikipedia.org/wiki/%E9%87%8E%E9%96%93%E6%96%87%E8%8A%B8%E6%96%B0%E4%BA%BA%E8%B3%9E"
},
"salience": 0,
"mentions": [
{
"text": {
"content": "野間文芸新人賞",
"beginOffset": 338
}
}
]
},
{
"name": "荻原浩",
"type": "PERSON",
"metadata": {
"wikipedia_url": "http://ja.wikipedia.org/wiki/%E8%8D%BB%E5%8E%9F%E6%B5%A9"
},
"salience": 0,
"mentions": [
{
"text": {
"content": "荻原浩",
"beginOffset": 401
}
}
]
},
{
"name": "大森望",
"type": "PERSON",
"metadata": {
"wikipedia_url": "http://ja.wikipedia.org/wiki/%E5%A4%A7%E6%A3%AE%E6%9C%9B"
},
"salience": 0,
"mentions": [
{
"text": {
"content": "大森望",
"beginOffset": 584
}
}
]
},
{
"name": "豊崎由美",
"type": "PERSON",
"metadata": {
"wikipedia_url": "http://ja.wikipedia.org/wiki/%E8%B1%8A%E5%B4%8E%E7%94%B1%E7%BE%8E"
},
"salience": 0,
"mentions": [
{
"text": {
"content": "豊崎由美",
"beginOffset": 596
}
}
]
},
{
"name": "メッタ斬り",
"type": "OTHER",
"metadata": {},
"salience": 0,
"mentions": [
{
"text": {
"content": "メッタ斬り",
"beginOffset": 614
}
}
]
}
],
"language": "ja"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment