Over a million developers have joined DZone.

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

Learn how API management supports better integration in Achieving Enterprise Agility with Microservices and API Management, brought to you in partnership with 3scale

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"

alchemy

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.

Unleash the power of your APIs with future-proof API management - Create your account and start your free trial today, brought to you in partnership with 3scale.

Topics:
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.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

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

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

{{ parent.tldr }}

{{ parent.urlSource.name }}