Using the Cloud Natural Language API to analyze Harry Potter and The New York Times Google Cloud Big Data and Machine Learning Blog

#artificialintelligence 

Ever wanted a way to easily extract and analyze meaningful data from text? The new Cloud Natural Language API has a feature that lets you extract entities from text -- like people, places and events -- with a single API call. Let's take the following sentence from a recent news article: LONDON -- J. K. Rowling always said that the seventh Harry Potter book, "Harry Potter and the Deathly Hallows," would be the last in the series, and so far she has kept to her word. I could write my own algorithm to find the people and locations mentioned in this sentence, but that would be difficult. And it would be even more difficult if I wanted to gather more data on each of the mentioned entities, or analyze entities across thousands of sentences, while accounting for mentions of the same entity that are phrased differently (e.g., "Rowling" and "J.K. Rowling"). With Cloud Natural Language API, I can analyze the above sentence with the API's analyzeEntities method.