Over a million developers have joined DZone.

Text Analysis via AlchemyAPI to Identify Entities

DZone's Guide to

Text Analysis via AlchemyAPI to Identify Entities

AlchemyAPI service on Bluemix offers several AlchemyLanguage APIs with text analysis. Here's a guide to text analysis​ with AlchemyAPI to identify entities.

· Integration Zone
Free Resource

Today’s data climate is fast-paced and it’s not slowing down. Here’s why your current integration solution is not enough. Brought to you in partnership with Liaison Technologies.

With the AlchemyAPI service on Bluemix provides multiple AlchemyLanguage APIs that offer text analysis through natural language processing. Below are some samples that show how to extract entities and concepts and how to understand sentiments.

AlchemyLanguage provides 12 different APIs to analyze text. The APIs can be invoked separately or via a combined call to optimize network requests. Here is a quick sample how to invoke the service to find entities, concepts and sentiments for my last blog entry.

curl -G "http://gateway-a.watsonplatform.net/calls/url/URLGetCombinedData?extract=entity,doc-sentiment,author,concept&apikey=[YOUR_API_KEY]&sentiment=1&outputMode=json&url=http://heidloff.net/article/worker-safety-demo-watson-iot-platform"


Entity Extraction API

The Entity Extraction API returns named entities like persons, companies, places and several other entity types. For each entity, it also returns linked data from sources like DBpedia and Freebase. In the example above “IBM” has been identified as a company and links for further information are provided. Additionally “John Cohn” has been identified as a person, again with linked data.

Concept Tagging API

The Concept Tagging API returns concepts identified in text. This allows, for example, to explore information based on concepts rather than limiting findings to traditional text matching as the Watson Concept Insights service does it. In the example above the concept “Thomas Watson” is identified since IBM and Watson are mentioned in the article and the concept “Wii” is identified since John Cohn actually worked on hardware for the Wii.

Sentiment Analysis API

The Sentiment Analysis API returns sentiments for text for full documents as well as sentiments for entities and keywords. In the example above the overall document, sentiment is positive and the entity/person John Cohn has a positive sentiment as well.

To find out more read the documentation and try the online demo.

Is iPaaS solving the right problems? Not knowing the fundamental difference between iPaaS and iPaaS+ could cost you down the road. Brought to you in partnership with Liaison Technologies.

text mining ,nlp ,sentiment analysis

Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}