Part 5: Making Watson Microservice using Python, Docker, and Flask

Creating a Python Microservice using Flask

We already have a Python application we wrote back in part 3.  This application takes in a text string and submits the text to IBM Watson to return an analysis of the text. The next step in building our application would be to take this piece of code and turn it into a Microservice.

The first step of creating a microservice from our code is to expose the functionality through some sort of interface. We will use Flask to expose our functionality via a HTTP (1.1. we will work on a 2.0 architecture update in a future post). Additionally we will set our BlueMix credentials from environment variables where the Python is executed. Continue reading Part 5: Making Watson Microservice using Python, Docker, and Flask

Part 4: Designing a Microservice Architecture

We currently have two different applications, one for extracting content from a web page and one for extracting a tone analysis from a string of text. Now we want to make these services and have them deployed where we can start using them, possibly at massive scale as we attempt to discern the overall feeling of the planet. Continue reading Part 4: Designing a Microservice Architecture

Part 3: IBM Completely Redeems Itself – Building a Tone analysis Service using IBM Bluemix and Watson

It’s no secret that I was not looking forward to figuring out the technical innards of sentiment analysis in order to make my simple system to tell me if I need to build a bunker and stock up on basic survival supplies like water, food, and batteries. Continue reading Part 3: IBM Completely Redeems Itself – Building a Tone analysis Service using IBM Bluemix and Watson

Part 2: Discovering Sentiment Analysis

In the first part of our series we wrote a simple web content extractor function that would fetch a web page, remove all the markup and return a simple text string representing the text on the page. While not a perfect solution (it chokes on AJAX features commonly found on many modern sites), it will serve our purpose for this series thus far. Continue reading Part 2: Discovering Sentiment Analysis