32
Watson Services On Bluemix Vikas K Manoria ([email protected]) Cloud Solutions Architect - Big Data & Watson IBM Software Labs, ISA

Intro to watson bluemix services

Embed Size (px)

Citation preview

Page 1: Intro to watson bluemix services

Watson Services On Bluemix

Vikas K Manoria ([email protected])

Cloud Solutions Architect - Big Data & Watson

IBM Software Labs, ISA

Page 2: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 3: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 4: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 5: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 6: Intro to watson bluemix services

http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/services-catalog.html

Watson Services in Bluemix available today

Mix and Match services performing unique tasks

Accessed by RESTful API and SDK

Page 7: Intro to watson bluemix services

Bluemix is an open-standards, cloud-based platform for building, running, and

managing applications.

Bluemix is underlined by three key open compute technologies: Cloud Foundry, Docker, and

OpenStack. It extends each of these with a growing number of services, robust DevOps

tooling, integration capabilities, and a seamless developer experience.

What is Bluemix and how does it work?

Page 8: Intro to watson bluemix services

Watson Services - View from IBM Bluemix

Page 9: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 10: Intro to watson bluemix services

Personality Insights

What is it?

Improves understanding of people's personalities & preferences to help

engage users on their own terms

How does it work?

The IBM Watson Personality Insights service uses linguistic

analytics to extract cognitive and social characteristics, including

Big Five, Values, and Needs from communications that the user

makes available, such as email, text messages, tweets, forum

posts, and more. By deriving cognitive and social preferences, the

service helps users to understand, connect to, and communicate

with other people on a more personalized level.

Use Cases-

• The service can analyze text based on a customer’s twitter stream to

help a travel agency decide between leading with a budget or luxury

trip offer.

• Hiring Managers can make better decisions based on applicant’s

personality traits.

More Info Demo

Celebrity Match

Page 11: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 12: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 13: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 14: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 15: Intro to watson bluemix services

© 2014 International Business Machines Corporation

Page 16: Intro to watson bluemix services

Text to Speech

What is it?

The Text to Speech service uses IBM's speech

synthesis capabilities to convert English or

Spanish text to an audio signal. The audio is

streamed back to the client with minimal delay.

The service can be accessed via a REST

interface.

How does it work?

Text to Speech service understands text and

natural language to generate synthesized audio

output complete with appropriate cadence and

intonation.

Use Cases-

Used in home automation solutions, assistance

tools for the vision-impaired, reading text and

email messages aloud to drivers, video script

narration and voice over, and reading-based

educational tools.More Info

Demo

Page 17: Intro to watson bluemix services

Prerequisites for this virtual lab session -

• Required

• Register for Bluemix Account: ibm.biz/vmanoria

• Verify your access with Bluemix Account:

– bluemix.net

– hub.jazz.net

• Recent version of Firefox or Chrome browser on Windows,

Linux or OSx.

– Note: Safari or Internet Explorer will not work with the audio

streaming created during this session

Page 18: Intro to watson bluemix services

IBM Confidential –

Page 18

Personality Insights

Text to Speech

How the App for Lab Works

Page 19: Intro to watson bluemix services

Step 1: Create a Node.js Bluemix app using the

Watson Personality Insights Boilerplate

• You’ll create a Node.js app from the Watson Personality Insights

boilerplate (06 minutes)

Animated instructions: ibm.biz/bmwatstep1

Step 2: Create an instance of the Text to Speech

Service and bind it to your app

• Create an instance of the Text to Speech service and bind it to

your app (04 minutes)

Animated instructions: ibm.biz/bmwatstep2

Page 20: Intro to watson bluemix services

Step 3: Add your code to IBM Dev Ops Services

and set up Live Edit Mode

• In this step you’ll use a Bluemix feature that allows you to add

any Boilerplate’s code to your IBM Dev Ops Services account

so you can modify it as needed for your own purposes.

• You’ll also learn how to enable Live Edit mode in IBM Dev Ops

Services so that code changes can be pushed out to Bluemix

quickly by restarting the app instead of redeploying it

• Your Dev Ops Services ibm.com ID MUST be the same as the

ibm.com ID for Bluemix so both environments can be linked

• 8 minutes

Animated instructions: ibm.biz/bmwatstep3

Page 21: Intro to watson bluemix services

Step 4: Update the app with code to add Text to

Speech capability• You will add code to pipe personality summaries to the Text to

Speech service and stream the audio to the client browser

• You’ll add code in 3 places

– 1) the jade html template used by the boilerplate to add a button that can be

pressed to do the text to speech conversion

– 2) The Node.js server side code to add a REST service call to convert text

passed in via a parameter to an audio stream

– 3) The client side Javascript code to add a handler for the button click event

of the new Listen button. The code calls the RESTs service call implemented

in 2)

• The code you need to download for this step is here :

http://ibm.biz/bmwatcode

• 8 minutes

Animated instructions: ibm.biz/bmwatstep4

Page 22: Intro to watson bluemix services

Step 5: Test your app

• You’re ready to test the app with to make sure the changes you

made to the boilerplate are working correctly

• 5 Minutes

Animated instructions: ibm.biz/bmwatstep5

Wrap up

Congrats! You have learned about

Watson and Bluemix and put together

an app that uses 2 Watson services in

less than an hour

Page 23: Intro to watson bluemix services

Speech to Text

© 2014 International Business Machines Corporation

What is it?

The Speech to Text service converts the human

voice into the written word. The service can be

accessed via a REST interface.

How does it work?

Speech to Text service applies machine

intelligence related to grammar and language

structure within a specific content to generate a

more accurate transcription. Transcriptions are

continuously sent back to the client and

retroactively updated as more speech is heard,

helping the system learn.

Use Cases-

Used in any application where speech or audio

files are used as input, and in which text is the

desired output format.

More Info

Demo

Page 24: Intro to watson bluemix services

Tradeoff Analytics

© 2014 International Business Machines Corporation

What is it?

Tradeoff Analytics service helps people make

better choices when faced with conflicting goals

and multiple alternatives, each with its own

strengths and weaknesses.

How does it work?

A person specifies objectives, preferences, and

priorities; the service filters out less attractive

options to encourage the person's exploration of

the remaining optimal candidates. In this way, the

service helps decision makers consider only the

best options to make a final, informed decision.

Use Cases-

• Choose the best phone in the market based on price, screen size, camera and weight.

• Choose the best bond to buy based on YTD , 1 year, 5 year, 10 year returns and Risk involved

• Choose restaurant based on price range, distance, star rating, reviews

More Info

Demo

Page 25: Intro to watson bluemix services

What is it?

Globalize on the fly. Translate text from one language to another.

How does it work?

The Language Translation service converts text input in one language into a destination language for the end user. Translation is available among English, Brazilian Portuguese, Spanish and French.

Use Cases-

A French speaking help desk representative is assisting a Portuguese speaking customer through a chat session and is able to interact through the translation service.

Language Translation

More Info

Demo

Page 26: Intro to watson bluemix services

Relationship Extraction What is it?

Extracts entities from unstructured text (such as people, locations, organizations, events), and the relationships between these entities (such as person employed-by organization, person resides-in location).

How does it work?

Processes terms (like people's names in a news feed) it has never analyzed before through contextual analysis. Sentence components include parts of speech (noun, verb, adjective, conjunction, etc.) and functions (subjects, objects, predicates, etc.). The service maps the relationships between the components so that users or analytics engines can more easily understand the meaning of individual sentences and documents.

Use Cases-

Analyzing articles on a new phone that came in the market, you can understand consumer response.

Understand the sentiment in the country for a national tragedy by analyzing news articles.

More Info

Demo1

Top 30 people in news

Page 27: Intro to watson bluemix services

Question and Answer

Understands question

Produces possible answers and

evidence

Analyzes evidence

Computes confidence

Delivers response, evidence and

confidence

Asks a question

Considers response and

evidence

What is it?

Provides responses to user’s questions based on primary document sources

How does it work?

Interprets and answers user questions directly based on primary data sources (brochures, web pages, manuals, records, etc.) that have been selected and gathered into a body of data or ‘corpus’. The service returns candidate responses with associated confidence levels and links to supporting evidence. The current data corpora on BlueMix focuses on the Travel and Healthcare industries.

Use Cases-

Healthcare: How can you cure breast cancer ?

Travel: What restaurant do I eat in Paris?

More Info

Demo

Page 28: Intro to watson bluemix services

Tone Analyzer

What is it?

Discover, understand, and revise the language tones in text.

How does it work?

Perhaps a bit too aggressive in your emails? Are

your blog posts a little too friendly? Tone

Analyzer might be able to help. The service uses

linguistic analysis to detect and interpret

emotional, social, and writing cues found in text.

Then, it also offers rhetorical suggestions for an

author to improve the intended tone of their

message. Read more about the science behind

Tone Analyzer here.

Use Cases-• Analyzing email messages, presentations, or

customer communications before sending them• Examining how readers might perceive your blogs• Help understand the potential impact of the word

choice in any other text-based communications

More Info

Demo

Page 29: Intro to watson bluemix services

Concept Expansion

What is it?

Maps terms to more commonly understood phrases

How does it work?

The Concept Expansion service analyzes text and interprets its meaning based on usage in other similar contexts. For example, it could interpret “The Big Blue” as meaning “IBM”. It can be used to create a dictionary of related words and concepts so that euphemisms, colloquialisms, or otherwise unclear phrases can be better understood and analyzed.

Use Cases-

“drugs” can be expanded to:

start seed terms motrin, aspirin, Keflex

post expansion allegra, lisinopril, metformin, aspirin, equagesic, cimetidine, fiorinal, vancomycin, avelox, protonix, glimepiride, protonix, verapamil, norco, inderal, hctz, advair

More Info

Demo

Page 30: Intro to watson bluemix services

Concept Insights

© 2014 International Business Machines Corporation

What is it?

The Concept Insights service maps user-

input words to the underlying concepts of

those words based on training from English

Wikipedia data. The service can be

accessed via a REST interface.

How does it work?

Builds relationships between a word and

documents containing concepts related to

the word.

Use Cases-

Assist with creating document on a topic say

“Solar Energy” by providing links that

expand the concept.

More Info

Demo

Page 31: Intro to watson bluemix services

http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/services-catalog.html

Explore more Watson Services here -

Mix and Match services performing unique tasks

Accessed by RESTful API and SDK

Page 32: Intro to watson bluemix services

Thanks