Here is ready to use Google Docs Script to Run IBM Watson For Text Analysis. Original was written by Amit Agarwal, however the script was not shared with GNU GPL 3.0 License restricting direct usage to his own demo. Full guide - Using IBM Watson For Text Analysis with Google Docs.
For this script, you'll need :
- IBM Cloud/Bluemix trial or paid account
- Google Apps account to add scripts
- On Google Docs of Google Apps open any text document.
- Go to Tools menu, then click Script Editor option menu.
- A new window from `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.
- Now select text, click that `★ IBM Watson` option to bring down option menu, click select `Analyze Text`.
- IBM Watson will ask for permission, allow it.
- Then you'll get the result as pop-up window.
- That's it
Change the credidential in snippet. Currrent working one is of Amit Agarwal.