Example of Using IBM Watson For Text Analysis with Google Docs

Advertisement

In previously published articles on this website, we discussed around developing cognitive applications using IBM Data Science Experience tool. As IBM has lot of examples on Github and their official websites intended for the developers; the reader factually need not to be machine learning expert to build scripts, programs, plugins which that can recognize objects in photographs or analyze emotion of text written by human. One such example usage is in WordPress Plugin to Analyze Emotion of posts. This Example of Using IBM Watson For Text Analysis with Google Docs Demands Not Much Knowledge of Coding and This Can Be Used to Analyze Common Text Articles.

For this guide, you’ll need :

IBM Cloud/Bluemix trial or paid account

Google Apps account to add scripts

Below are some resources, official working demo from IBM around the topic :

NOTE : We do not recommend to upload sensitive document on Google Cloud for avoiding breech of privacy. Google’s various services are blacklisted by Richard Stallman & Free Software community. IBM Watson definitely a proprietary service but IBM, at least till the time of publication of this article, not known to be associated with mass surveillance.

Using IBM Watson For Text Analysis : Needed Minimum Theory

IBM Watson For Text Analysis is example of Natural Language Processing (NLP) service by IBM. With the service, we are using machine learning to extract data and understand overall emotion of text. In one recent article, we discussed difference of AI and machine learning to the newbies.

Natural Language Processing (NLP) is the ability of a computer program to understand natural human language. Natural Language Processing (NLP) is a component of artificial intelligence (AI) like machine learning (ML) is.

Advertisement

---

Example of Using IBM Watson For Text Analysis with Google Docs

Obviously, you need to know how to add script in Google Docs. That documentation, how to is here :

should be changed to yours one till he blocks or change it! That above credential is of original poet who written the script (if he changes credential, you can click open his link, go to Tools menu, then click Script Editor option menu to find the script and get the new credential). I also kept the thing as GitHub repo.

How to use it?

On Google Docs of Google Apps open any text document.

Go to Tools menu, then click Script Editor option menu.

A new window from https://script.google.com/a/ will open.

Copy-paste the above snippet and save it.

Reload the Google Docs of Google Apps window with your text document.

You’ll notice that a new button named ★ IBM Watson appeared beside Help menu of Google docs.