Teaching Machines the Art of Nuance with Google Cloud Natural Language API
Leggi la fonte originale
Keywords are a blunt instrument for a sharp problem. Everyday, all kinds of users leave a digital trail of reviews, tweets, and support tickets on the internet. For a long time, the best we could do was keyword matching, searching for words like "bad" or "excellent." But human language is far more nuanced than a simple checklist of adjectives.
I’ve been exploring Entity and Sentiment Analysis with Natural Language API on Google Cloud, and I think it's pretty cool for developers who want to move past simple text search and into true context-awareness. Whether you’re building an intelligent support desk or a global trend-tracking engine, this API moves the needle from simple data processing to genuine human understanding. Here's why:
1. The Power of Entity.
Traditional search looks for strings. The Natural Language API looks for Entities. Take a look at the request and response below:
Request:
{
"document":{
"type":"PLAIN_TEXT",
"content":"Masashi Kishimoto is a Japanese manga artist who is best known for creating the Naruto series, which became one of the best-selling manga in history."
},
"encodingType":"UTF8"
}
Response:
{
"entities": [
{
"name": "Masashi Kishimoto",
"type": "PERSON",
"metadata": {
"mid": "/m/01v8_m",
"wikipedia_url": "https://en.wikipedia.org/wiki/Masashi_Kishimoto"
},
"salience": 0.82,
...
Leggi la fonte originale