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. I was planning on using the Tone Analysis service from IBM Bluemix Watson API’s but couldn’t seem to create credentials. Frustrated, I sent a support ticket. Within 4 hours, IBM had responded and fixed the issue.
So without further ado – building a Watson Tone Analysis Microservice using IBM Bluemix.
Creating a Tone Analysis Service With Bluemix
If you haven’t already, you will need to create a Bluemix account. IBM Bluemix is IBM’s cloud infrastructure competitor to Amazon Web Services. You can run a lot of your infrastructure on Bluemix, everything from VM’s to microservices. Bluemix allows for classic VM architecture, as well as encouraging container based solutions and microservice architectures.
The particular feature of Bluemix we are interested in is the Watson API’s. In an earlier post, we investigated using Bluemix to create a simple Chatbot script. In this post we are going to stand up a simple API that will accept a string of text and then return the tone analysis output in JSON.
- To start go to the Services Dashboard screen and click Create Service
- On the next screen, select the Tone Analyzer service type
- In the next screen input your service name and a name for your credentials to use that service. For this example I chose PanicMeter for the service name and PanicCreds1 for the credentials name. Hit “Create” to start the process of creating your Tone Analysis endpoint.
- At the next screen your service is now up and running. Before we begin the code portion we will need to collect your credentials, so click on the Credentials tab and “View Credentials” next to your credentials you named in the previous step. Keep this struct handy.
Call our Watson Service using Python
- Make sure you have Python and pip installed on your machine. If you don’t its pretty easy to figure out how to do this and is beyond the scope of this how to. We will assume you have python installed.
- Watson is expecting a simple POST call in order to use it. The URL is provided in your credentials as well as your authentication username and password.
- Create a python source file below and run it using python. I have included a sample string output of Drudge Report output from our web content extractor service we created in Go in Part 1 of this series.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import requests import json import pprint def gettone(text): user = 'fc265889-54b4-448c-b264-602c5a754ef1' passwd = 'xnk5jw5q56DS' url = 'https://gateway.watsonplatform.net/tone-analyzer/api/v3/tone?version=2016-05-19' headers = {"content-type": "text/plain"} try: r = requests.post(url, auth=(user,passwd),headers = headers,data=text) return json.loads(str(r.text)) except: return False if __name__ == "__main__": pp = pprint.PrettyPrinter(indent=4) inputstring = "DRUDGE REPORT 2017 TINSELTOWN IN THE RAIN: WRONG BEST PICTURE ANNOUNCED... BIGGEST OSCAR DISASTER IN HISTORY... TAKE TWO: 'MOONLIGHT' WINS... Conspiracy Theories Abound... Crisis meetings over blunder... 'In Memoriam' Segment Showed Still-Alive Producer... Kimmel Makes Fun of Names and Criticism Is Immediate... NON-STOP TRUMP BASHING ON THE BOULEVARD... STAGE PROP COMES CRASHING DOWN... 'For all the immigrants!': First win for a Muslim... ACTOR: DON'T BUILD WALLS... Rousing Ovation for Iranian Filmmaker... TEHRAN PRAISES... THE ENVELOPE, PLEASE BEATTY BLOWS IT? RATINGS FALL AGAIN TINSELTOWN IN THE RAIN: WRONG BEST PICTURE ANNOUNCED... BIGGEST OSCAR DISASTER IN HISTORY... TAKE TWO: 'MOONLIGHT' WINS... Conspiracy Theories Abound... Crisis meetings over blunder... 'In Memoriam' Segment Showed Still-Alive Producer... Kimmel Makes Fun of Names and Criticism Is Immediate... NON-STOP TRUMP BASHING ON THE BOULEVARD... STAGE PROP COMES CRASHING DOWN... 'For all the immigrants!': First win for a Muslim... ACTOR: DON'T BUILD WALLS... Rousing Ovation for Iranian Filmmaker... TEHRAN PRAISES... THE ENVELOPE, PLEASE BEATTY BLOWS IT? RATINGS FALL AGAIN TINSELTOWN IN THE RAIN: WRONG BEST PICTURE ANNOUNCED... BIGGEST OSCAR DISASTER IN HISTORY... TAKE TWO: 'MOONLIGHT' WINS... Conspiracy Theories Abound... Crisis meetings over blunder... 'In Memoriam' Segment Showed Still-Alive Producer... Kimmel Makes Fun of Names and Criticism Is Immediate... NON-STOP TRUMP BASHING ON THE BOULEVARD... STAGE PROP COMES CRASHING DOWN... 'For all the immigrants!': First win for a Muslim... ACTOR: DON'T BUILD WALLS... Rousing Ovation for Iranian Filmmaker... TEHRAN PRAISES... THE ENVELOPE, PLEASE BEATTY BLOWS IT? RATINGS FALL AGAIN March biggest month for Republicans in decade... Budget plan boosts Pentagon, trims State Dept, EPA... $54B Increase in Military Spending... Trump supporters in NYC face intimidation, threats... Iran holds naval war games amid rising tensions with USA... Ahmadinejad writes open letter... Revolutionary Guards Commander Admits Terror Cells Ready to Strike in America... RISING TENSIONS LOOM AS USA, ASIAN POWERS DISCUSS NKOREA... PAPER: No plan to fix missile defense system... RAMOS: America 'Our Country, Not Theirs'... Mexico Catholic Church says govt submits to Trump 'terrorism'... Vatican stakes out rights to Pope Francis' image... Geert Wilders, Reclusive Provocateur, Rises Before Dutch Vote... Trump-Style Oz Populists Gain in Polls... Stockman Debt Ceiling Warning... Everything Will Grind To Halt... Will Ides of March bury stock market? loadAdVals(\"AD FEEDBACK\"); FRONT PAGES UK WORLD BOXOFFICE TV RATINGS ABCNEWS ADWEEK ANTI-WAR.COM ATLANTIC BBC BILD BILLBOARD BLAZE BOSTON GLOBE BOSTON HERALD BREITBART BUSINESS INSIDER BUZZFEED CBS NEWS CBS NEWS LOCAL C-SPAN CHICAGO SUN-TIMES CHICAGO TRIB CHRISTIAN SCIENCE CNBC CNN DAILY BEAST DAILY CALLER DEADLINE HOLLYWOOD DER SPIEGEL E! ECONOMIST ENT WEEKLY FINANCIAL TIMES FORBES FOXNEWS FRANCE 24 FREE BEACON FREE REPUBLIC HOT AIR HELLO! HILL HILL: JUST IN H'WOOD REPORTER HUFFINGTON POST INFOWARS INTERCEPT INVEST BUS DAILY JERUSALEM POST LA DAILY NEWS LA TIMES LUCIANNE.COM MEDIAITE MOTHER JONES NATION NATIONAL REVIEW NBC NEWS NEW REPUBLIC NEW YORK NY DAILY NEWS NY OBSERVER NY POST NY TIMES NY TIMES WIRE NEW YORKER NEWSBUSTERS NEWSMAX NEWSWEEK NKOREAN NEWS PEOPLE PHILLY INQUIRER PHILLY DAILY NEWS PJ MEDIA POLITICO RADAR REAL CLEAR POLITICS REASON ROLL CALL ROLLING STONE SALON SAN FRAN CHRON SKY NEWS SLATE SMOKING GUN SYDNEY MORNING HERALD TALKING POINTS MEMO TIME MAG TMZ [UK] DAILY MAIL [UK] DAILY MAIL FEED [UK] DAILY MIRROR [UK] DAILY RECORD [UK] EVENING STANDARD [UK] EXPRESS [UK] GUARDIAN [UK] INDEPENDENT [UK] SUN [UK] TELEGRAPH US NEWS USA TODAY VANITY FAIR VARIETY VILLAGE VOICE WALL STREET JOURNAL WALL STREET JOURNAL FEED WASH EXAMINER WASH POST WASH TIMES WEEKLY STANDARD WORLD NET DAILY X17 ZERO HEDGE March biggest month for Republicans in decade... Budget plan boosts Pentagon, trims State Dept, EPA... $54B Increase in Military Spending... Trump supporters in NYC face intimidation, threats... Iran holds naval war games amid rising tensions with USA... Ahmadinejad writes open letter... Revolutionary Guards Commander Admits Terror Cells Ready to Strike in America... RISING TENSIONS LOOM AS USA, ASIAN POWERS DISCUSS NKOREA... PAPER: No plan to fix missile defense system... RAMOS: America 'Our Country, Not Theirs'... Mexico Catholic Church says govt submits to Trump 'terrorism'... Vatican stakes out rights to Pope Francis' image... Geert Wilders, Reclusive Provocateur, Rises Before Dutch Vote... Trump-Style Oz Populists Gain in Polls... Stockman Debt Ceiling Warning... Everything Will Grind To Halt... Will Ides of March bury stock market? loadAdVals(\"AD FEEDBACK\"); FRONT PAGES UK WORLD BOXOFFICE TV RATINGS ABCNEWS ADWEEK ANTI-WAR.COM ATLANTIC BBC BILD BILLBOARD BLAZE BOSTON GLOBE BOSTON HERALD BREITBART BUSINESS INSIDER BUZZFEED CBS NEWS CBS NEWS LOCAL C-SPAN CHICAGO SUN-TIMES CHICAGO TRIB CHRISTIAN SCIENCE CNBC CNN DAILY BEAST DAILY CALLER DEADLINE HOLLYWOOD DER SPIEGEL E! ECONOMIST ENT WEEKLY FINANCIAL TIMES FORBES FOXNEWS FRANCE 24 FREE BEACON FREE REPUBLIC HOT AIR HELLO! HILL HILL: JUST IN H'WOOD REPORTER HUFFINGTON POST INFOWARS INTERCEPT INVEST BUS DAILY JERUSALEM POST LA DAILY NEWS LA TIMES LUCIANNE.COM MEDIAITE MOTHER JONES NATION NATIONAL REVIEW NBC NEWS NEW REPUBLIC NEW YORK NY DAILY NEWS NY OBSERVER NY POST NY TIMES NY TIMES WIRE NEW YORKER NEWSBUSTERS NEWSMAX NEWSWEEK NKOREAN NEWS PEOPLE PHILLY INQUIRER PHILLY DAILY NEWS PJ MEDIA POLITICO RADAR REAL CLEAR POLITICS REASON ROLL CALL ROLLING STONE SALON SAN FRAN CHRON SKY NEWS SLATE SMOKING GUN SYDNEY MORNING HERALD TALKING POINTS MEMO TIME MAG TMZ [UK] DAILY MAIL [UK] DAILY MAIL FEED [UK] DAILY MIRROR [UK] DAILY RECORD [UK] EVENING STANDARD [UK] EXPRESS [UK] GUARDIAN [UK] INDEPENDENT [UK] SUN [UK] TELEGRAPH US NEWS USA TODAY VANITY FAIR VARIETY VILLAGE VOICE WALL STREET JOURNAL WALL STREET JOURNAL FEED WASH EXAMINER WASH POST WASH TIMES WEEKLY STANDARD WORLD NET DAILY X17 ZERO HEDGE PAPER: BEST OSCARS EVER! The Real 'La La Land' -- why struggling actresses reject film... WALLS AND FENCES SURROUND ACADEMY AWARDS... THE OCCULT TAKES ON A PRESIDENT... MORE WITCHCRAFT RITUALS PLANNED... SPICER WARNS NO MORE LEAKS ABOUT LEAKS... In Trump-CNN Battle, 2 Presidents Who Love Spectacle... WOODWARD TELLS MEDIA: STOP WHINING...IN FIRST SPEECH TO CONGRESS, WILL DECORUM HOLD? Dems plan to troll... French election turns ugly as political attacks mount... Yes, Le Pen could win... Judge rules Bill Cosby case to be decided by outside jury... OJ Simpson could be released within months and free to cash in on NFL pension... MUHAMMAD ALI'S SON ASKED, 'ARE YOU MUSLIM?' BY BORDER AGENTS... EU lawmakers pull plug on 'racist' talk... UK: TECH GIANTS MUST TACKLE CYBERBULLIES OR FACE SANCTIONS... SUPREME COURT WEIGHS LAW BANNING SEX OFFENDERS FROM FACEBOOK... 'Homeland Security' may relax hiring requirements to meet border agent goal... First openly gay football scholarship player to make NCAA history... Tebow brings buzz to METS camp... 3 AM GIRLS JILL ABRAMSON CINDY ADAMS MIKE ALLEN BAZ BAMIGBOYE DAVE BARRY FRED BARNES MICHAEL BARONE PAUL BEDARD BIZARRE [SUN] BRENT BOZELL DAVID BROOKS PAT BUCHANAN HOWIE CARR MONA CHAREN CHRIS CILLIZZA CNN: RELIABLE SOURCES [NY DAILY NEWS] CONFIDENTIAL DAVID CORN ANN COULTER LOU DOBBS MAUREEN DOWD LARRY ELDER JOSEPH FARAH SUZANNE FIELDS FISHBOWL, DC FISHBOWL, NYC ROGER FRIEDMAN BILL GERTZ JONAH GOLDBERG GLENN GREENWALD LLOYD GROVE HANNITY STEPHEN HAYES HUGH HEWITT KATIE HOPKINS LAURA INGRAHAM INSIDE BELTWAY RICHARD JOHNSON ALEX JONES MICKEY KAUS KEITH J. KELLY KRAUTHAMMER KRISTOF KRISTOL KRUGMAN LARRY KUDLOW HOWIE KURTZ MARK LEVIN DAVID LIMBAUGH RUSH LIMBAUGH RICH LOWRY MICHELLE MALKIN DANA MILBANK PIERS MORGAN DICK MORRIS PEGGY NOONAN PAGE SIX ANDREA PEYSER JIM PINKERTON POLITICO MORNING MEDIA POLITICO PLAYBOOK BILL PRESS WES PRUDEN REX REED RICHARD ROEPER BETSY ROTHSTEIN JIM RUTENBERG MICHAEL SAVAGE LIZ SMITH THOMAS SOWELL BRIAN STELTER MARK STEYN ROGER STONE TAKI THEODORACOPULOS CAL THOMAS BOB TYRRELL TV NEWSER JEFF WELLS WASHINGTON WHISPERS GEORGE WILL WALTER WILLIAMS MILO YIANNOPOULOS BYRON YORK BILL ZWECKER PAPER: BEST OSCARS EVER! The Real 'La La Land' -- why struggling actresses reject film... WALLS AND FENCES SURROUND ACADEMY AWARDS... THE OCCULT TAKES ON A PRESIDENT... MORE WITCHCRAFT RITUALS PLANNED... SPICER WARNS NO MORE LEAKS ABOUT LEAKS... In Trump-CNN Battle, 2 Presidents Who Love Spectacle... WOODWARD TELLS MEDIA: STOP WHINING... IN FIRST SPEECH TO CONGRESS, WILL DECORUM HOLD? Dems plan to troll... French election turns ugly as political attacks mount... Yes, Le Pen could win... Judge rules Bill Cosby case to be decided by outside jury... OJ Simpson could be released within months and free to cash in on NFL pension... MUHAMMAD ALI'S SON ASKED, 'ARE YOU MUSLIM?' BY BORDER AGENTS... EU lawmakers pull plug on 'racist' talk... UK: TECH GIANTS MUST TACKLE CYBERBULLIES OR FACE SANCTIONS... SUPREME COURT WEIGHS LAW BANNING SEX OFFENDERS FROM FACEBOOK... 'Homeland Security' may relax hiring requirements to meet border agent goal... First openly gay football scholarship player to make NCAA history... Tebow brings buzz to METS camp... 3 AM GIRLS JILL ABRAMSON CINDY ADAMS MIKE ALLEN BAZ BAMIGBOYE DAVE BARRY FRED BARNES MICHAEL BARONE PAUL BEDARD BIZARRE [SUN] BRENT BOZELL DAVID BROOKS PAT BUCHANAN HOWIE CARR MONA CHAREN CHRIS CILLIZZA CNN: RELIABLE SOURCES [NY DAILY NEWS] CONFIDENTIAL DAVID CORN ANN COULTER LOU DOBBS MAUREEN DOWD LARRY ELDER JOSEPH FARAH SUZANNE FIELDS FISHBOWL, DC FISHBOWL, NYC ROGER FRIEDMAN BILL GERTZ JONAH GOLDBERG GLENN GREENWALD LLOYD GROVE HANNITY STEPHEN HAYES HUGH HEWITT KATIE HOPKINS LAURA INGRAHAM INSIDE BELTWAY RICHARD JOHNSON ALEX JONES MICKEY KAUS KEITH J. KELLY KRAUTHAMMER KRISTOF KRISTOL KRUGMAN LARRY KUDLOW HOWIE KURTZ MARK LEVIN DAVID LIMBAUGH RUSH LIMBAUGH RICH LOWRY MICHELLE MALKIN DANA MILBANK PIERS MORGAN DICK MORRIS PEGGY NOONAN PAGE SIX ANDREA PEYSER JIM PINKERTON POLITICO MORNING MEDIA POLITICO PLAYBOOK BILL PRESS WES PRUDEN REX REED RICHARD ROEPER BETSY ROTHSTEIN JIM RUTENBERG MICHAEL SAVAGE LIZ SMITH THOMAS SOWELL BRIAN STELTER MARK STEYN ROGER STONE TAKI THEODORACOPULOS CAL THOMAS BOB TYRRELL TV NEWSER JEFF WELLS WASHINGTON WHISPERS GEORGE WILL WALTER WILLIAMS MILO YIANNOPOULOS BYRON YORK BILL ZWECKER Supersmart Robots Will Outnumber Humans Within 30 Years, Says SOFTBANK CEO... Judge Orders Release Of Papers Detailing Radiation Risk Of Cellphones... Welcome Aboard... But First US Marshals Will Scan Your Retina! German hostage beheaded by ISIS... Terror group teaching fighters to EAT non-Muslims... FATHER OF DEAD NAVY SEAL REFUSED TO MEET TRUMP AT CEREMONY... Calls for investigation... W. Bush opens up on media war... 'Power is addictive'... Sexercise: 657 reasons why ultimate workout happens between sheets... HIGH SCHOOL ABANDONS ANNUAL AUCTION OF SENIOR; 'INSENSITIVE'... Woman, 96, killed by BED BUGS... Caretaker charged with manslaughter... Chicago First Time Ever No Snow On Ground In Jan, Feb... Haitians' ire over carnival spending amid hurricane's ruins... Countdown begins for Raul Castro's retirement next year... loadAdVals(\"AD FEEDBACK\"); AGENCE FRANCE-PRESSE AP TOP AP HEADLINE WALL AP RAW AP RADIO BLOOMBERG DEUTSCHE PRESSE-AGENTUR DOW JONES INDO-ASIAN NEWS SERVICE INTERFAX ITAR-TASS KYODO MCCLATCHY [DC] PRAVDA PRESS TRUST INDIA PR NEWSWIRE REUTERS REUTERS POLITICS REUTERS WORLD XINHUA UPI YONHAP loadAdVals(\"AD FEEDBACK\"); GOOGLE NEWS RECENT DRUDGE HEADLINES... WEATHER ACTION QUAKE SHEET SEND NEWS TIPS TO DRUDGE GET IT ON THE GO: DRUDGE MOBILE... VISITS TO DRUDGE 02/27/2017 028,968,304 PAST 24 HOURS 950,077,940 PAST 31 DAYS 10,903,124,261 PAST YEAR DRUDGE REFERENCE DESK EMAIL: DRUDGE@DRUDGEREPORT.COM BE SEEN! RUN ADS ON DRUDGE REPORT... PRIVACY POLICY... Supersmart Robots Will Outnumber Humans Within 30 Years, Says SOFTBANK CEO... Judge Orders Release Of Papers Detailing Radiation Risk Of Cellphones... Welcome Aboard... But First US Marshals Will Scan Your Retina! German hostage beheaded by ISIS... Terror group teaching fighters to EAT non-Muslims... FATHER OF DEAD NAVY SEAL REFUSED TO MEET TRUMP AT CEREMONY... Calls for investigation... W. Bush opens up on media war... 'Power is addictive'... Sexercise: 657 reasons why ultimate workout happens between sheets... HIGH SCHOOL ABANDONS ANNUAL AUCTION OF SENIOR; 'INSENSITIVE'... Woman, 96, killed by BED BUGS... Caretaker charged with manslaughter... Chicago First Time Ever No Snow On Ground In Jan, Feb... Haitians' ire over carnival spending amid hurricane's ruins... Countdown begins for Raul Castro's retirement next year... AGENCE FRANCE-PRESSE AP TOP AP HEADLINE WALL AP RAW AP RADIO BLOOMBERG DEUTSCHE PRESSE-AGENTUR DOW JONES INDO-ASIAN NEWS SERVICE INTERFAX ITAR-TASS KYODO MCCLATCHY [DC] PRAVDA PRESS TRUST INDIA PR NEWSWIRE REUTERS REUTERS POLITICS REUTERS WORLD XINHUA UPI YONHAP GOOGLE NEWS RECENT DRUDGE HEADLINES... WEATHER ACTION QUAKE SHEET GET IT ON THE GO: DRUDGE MOBILE... DRUDGE REFERENCE DESK EMAIL: DRUDGE@DRUDGEREPORT.COM BE SEEN! RUN ADS ON DRUDGE REPORT... PRIVACY POLICY... " pp.pprint(gettone(inputstring)) |
You will get a pretty printed JSON object that is the response of the Watson API regarding the output of the Drudge Report. Lets examine this a bit further.
What Watson Tells Us
Using the interface located at this URL, we can view the output of Watson a little clearer than the JSON representation.
We can get a good primer on the understanding of our tone score here.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | { u'document_tone': { u'tone_categories': [ { u'category_id': u'emotion_tone', u'category_name': u'Emotion Tone', u'tones': [ { u'score': 0.15675, u'tone_id': u'anger', u'tone_name': u'Anger'}, { u'score': 0.466465, u'tone_id': u'disgust', u'tone_name': u'Disgust'}, { u'score': 0.151851, u'tone_id': u'fear', u'tone_name': u'Fear'}, { u'score': 0.241142, u'tone_id': u'joy', u'tone_name': u'Joy'}, { u'score': 0.524537, u'tone_id': u'sadness', u'tone_name': u'Sadness'}]}, { u'category_id': u'language_tone', u'category_name': u'Language Tone', u'tones': [ { u'score': 0.104316, u'tone_id': u'analytical', u'tone_name': u'Analytical'}, { u'score': 0.04453, u'tone_id': u'confident', u'tone_name': u'Confident'}, { u'score': 0.0, u'tone_id': u'tentative', u'tone_name': u'Tentative'}]}, { u'category_id': u'social_tone', u'category_name': u'Social Tone', u'tones': [ { u'score': 0.366807, u'tone_id': u'openness_big5', u'tone_name': u'Openness'}, { u'score': 0.618519, u'tone_id': u'conscientiousness_big5', u'tone_name': u'Conscientiousness'}, { u'score': 0.95833, u'tone_id': u'extraversion_big5', u'tone_name': u'Extraversion'}, { u'score': 0.957516, u'tone_id': u'agreeableness_big5', u'tone_name': u'Agreeableness'}, { u'score': 0.60288, u'tone_id': u'emotional_range_big5', u'tone_name': u'Emotional Range'}]}]} |
As we can see, the night after the Oscar Best picture blunder, along with various Trump related topics gave us a relatively high Disgust and Sadness factor. In addition to the trend in death related news topics, its seems to make sense. Lets have a look at the New York times and see if we can get some agreement.

As we can see, The NYT is agreeing on the Disgust and Sadness factor, but also a bit more fear involved. Interesting. Lets see what else we can discover. Lets see about the Huffington Post.


A lot more Anger here. Thats interesting. The overall sadness vibe is really present. We can see the HP highlighted recent hate crimes committed against Jewish graves so perhaps that is moving the angrometer. Lets try something that seems a lot more angry like Alex Jone’s infowars.Interestingly enough, Alex came across as fearful and Sad. We are getting a good helping of rather negative emotional content however although its not coherent on which negative emotional content we have. We can also see in the Social Tendencies section, that Info Wars is much more limited in the writers socialability. That seems valid as Info Wars is only written by a small set of writers hence the range would be a bit less.
Lets go a little further. Lets analyze Donald Trumps CPAC speech.

Interestingly enough, Fear, Joy, and Sadness. A bit analytical but absolutely no confidence. To contrast, lets hear Obama’s inaguration speech. Im expecting his socialbility factors to be a bit higher, and perhaps all appeals to emotion a bit lower. Obama was inspirational but he was highly measured almost tentative in any thing he said. He hardly ever appealed to emotion and was much more concientious in his speeches. The results:

Interesting that he had a lot more emotion and a lot more emotional range.
Making Sense of This
As we can see making sense of this data is more art than science. I will need to investigate the output a bit more and track the news sites over time to see if patterns emerge. We can see though that this manual process of extracting content and then putting it into the Watson API is a bit hairy. In our next post we will look into creating a microservice ecosystem to handle these services automatically.