building your own watson powered application on bluemix

34
Building Your Own Watson Powered Application on Bluemix

Upload: ibm-bluemix

Post on 07-Jul-2015

4.451 views

Category:

Technology


1 download

DESCRIPTION

Join Chris Madison and Nathan Vega as we explore Watson services on Bluemix and how developers can harness the services to build the most innovative applications to meet their needs.

TRANSCRIPT

Page 1: Building Your Own Watson Powered Application on Bluemix

Building Your Own Watson Powered Application on Bluemix

Page 2: Building Your Own Watson Powered Application on Bluemix

2© 2014 International Business Machines Corporation

Interactivity Tips

1. Ask A Question

2. Download a PDF copy of today’s presentation

3. Social Networking Tools

Page 3: Building Your Own Watson Powered Application on Bluemix

Building Your Own Watson Powered Application on Bluemix

Page 4: Building Your Own Watson Powered Application on Bluemix

4

Chris Madison (Speaker)

Solution Architect, Watson Innovations

@ChrisMadisonIBM

Nathan Vega (Moderator)

Developer Engagement, IBM Bluemix

@IBMBluemix

Bluemix Blog

Page 5: Building Your Own Watson Powered Application on Bluemix

5

Agenda

• Introduction

• Who I am and what I do

•BlueMix

•Watson Platform Services

• User Modeling Demo: Node

• Question and Answer Demo: Java on Liberty

• Question and Answer Session

© 2014 International Business Machines Corporation

Page 6: Building Your Own Watson Powered Application on Bluemix

© 2014 International Business Machines Corporation© 2014 International Business Machines Corporation

BlueMix

6

Page 7: Building Your Own Watson Powered Application on Bluemix

7

What is BlueMix?

• Bluemix is an open-standard, cloud-based platform for building,

managing, and running applications of all types (web, mobile, big

data, new smart devices, and so on).

© 2014 International Business Machines Corporation

Instant EnvironmentsThe developer can choose any

language runtime or bring your own.

Zero to production in one command.

APIs and ServicesA catalog of IBM, third party, and open

source API services allow the

developer to stitch an application

together in minutes.

On-Prem IntegrationBuild hybrid environments. Connect to

on-premise assets plus other public

and private clouds.

DevOpsDevelopment, monitoring, deployment,

and logging tools allow the developer to

run the entire application.

Layered SecurityIBM secures the platform and

infrastructure and provides you with the

tools to secure your apps.

Flexible PricingSign up in minutes. Pay as you go and

subscription models offer choice and

flexibility.

Page 8: Building Your Own Watson Powered Application on Bluemix

8

Why are developers using BlueMix?

© 2014 International Business Machines Corporation

Go from zero to running code in a

matter of minutes

Automate the development and

delivery of many applications

To rapidly bring products

and services to market at

lower cost

To continuously deliver

new functionality to their

applications

To extend existing

investments in IT

infrastructure

Extend existing investments by

connecting securely to on-

premise infrastructure

Page 9: Building Your Own Watson Powered Application on Bluemix

© 2014 International Business Machines Corporation© 2014 International Business Machines Corporation

Watson Platform Services

9

Page 10: Building Your Own Watson Powered Application on Bluemix

10

A cognitive learning system enhances our abilities to perceive, reason and relate.

© 2014 International Business Machines Corporation

Perception:

Watson understands the world as we do: it interprets sensory input beyond traditional data

Reasoning:

Watson thinks through complex problems: it deepens our analysis and inspires creativity

Relating:

Watson understands how we communicate, and personalizes its interactions with each of us

Learning:

Watson learns from every interaction, scaling our ability to build experience

Page 11: Building Your Own Watson Powered Application on Bluemix

11© 2014 International Business Machines Corporation

User Modeling

Psycholinguistic

Analytics

• User Modeling leverages linguistic analytics to construct

a personality profile of an individual based on their

social footprint and other written artifacts.

• The generated profile includes personality and

social traits, values, needs and the Big 5

personality traits

• Openness

• Conscientiousness

• Extraversion

• Agreeableness

• Neuroticism

Page 12: Building Your Own Watson Powered Application on Bluemix

12

User Modeling

Input: The application provides text input

generated by the individual: emails, tweets, blogs

and other text documents.

Portrait API: JSON object of cognitive and social

characteristics

Visualization API: Uses Portrait API output to

generate a visual portrait© 2014 International Business Machines Corporation

Page 13: Building Your Own Watson Powered Application on Bluemix

13© 2014 International Business Machines Corporation

Language Identification

Analyzes text and identifies the primary language

of the text.

Input: UTF-8 formatted text Output: IETF language tag

中國哲學書電子化計劃

zh-TW

© 2014 International Business Machines Corporation

Page 14: Building Your Own Watson Powered Application on Bluemix

14© 2014 International Business Machines Corporation

Machine Translation

Provides an API to translate text between

languages.

Input: REST service call

that contains text and the

translation engine to use.

Output: Translated text

Supports English, Spanish, Brazilian Portuguese and French.

© 2014 International Business Machines Corporation

Page 15: Building Your Own Watson Powered Application on Bluemix

15© 2014 International Business Machines Corporation

Relationship Extraction

Analyzes text and identifies relationships

between sentence components.

© 2014 International Business Machines Corporation

Page 16: Building Your Own Watson Powered Application on Bluemix

16© 2014 International Business Machines Corporation

Relationship Extraction

Input: Text to analyze,

model, output format

Output: Extracted

relationships in text, json or

xml format.

Supports English and Spanish language news models.

© 2014 International Business Machines Corporation

Page 17: Building Your Own Watson Powered Application on Bluemix

17

Question Answer

Leverages NLP to understand user

questions and provides answers,

evidence and associated confidence.

The Question Answer service is a

gateway to BlueMix-hosted Travel and

Healthcare domain corpora.

Understands question

Produces possible answers and

evidence

Analyzes evidence

Computes confidence

Delivers response, evidence and

confidence

Asks a question

Considers response and

evidence

© 2014 International Business Machines Corporation© 2014 International Business Machines Corporation

Page 18: Building Your Own Watson Powered Application on Bluemix

18© 2014 International Business Machines Corporation

Question Answer Question Answer

Input: A QA API formatted question{ question: {

questionText: “Should I take aspirin on a daily basis?”

}}

Output: QA API JSON response with

answers, evidence and confidence

levels.

Question Answer - QAAPI

© 2014 International Business Machines Corporation

Page 19: Building Your Own Watson Powered Application on Bluemix

19© 2014 International Business Machines Corporation

Question Answer Question Answer

The Watson for Travel corpus contains content from the

following sources:

•Wikivoyage

•CDC Travel

•TSA.gov

Question Answer - Travel

© 2014 International Business Machines Corporation

Page 20: Building Your Own Watson Powered Application on Bluemix

20© 2014 International Business Machines Corporation

Question Answer Question Answer

The Watson for Healthcare corpus is populated from the

following sources:

•Healthfinder.gov

•CDC Health Topics

•National Heart, Lung, and Blood Institute (NHLBI)

•National Institute of Arthritis and Musculoskeletal and

Skin Diseases (NIAMS)

•National Institute of Diabetes and Digestive and Kidney

Diseases (NIDDK)

•National Institute of Neurological Disorders and Stroke

(NINDS)

•Cancer.gov (physician data query)

Question Answer - Healthcare

© 2014 International Business Machines Corporation

Page 21: Building Your Own Watson Powered Application on Bluemix

21© 2014 International Business Machines Corporation

Concept Expansion

Concept Expansion is a process that is also known as Semantic Lexicon

Induction, or Semantic Set Expansion. It is the process by which a

semantic class, such as fruit goes from a list of terms like "apple, orange,

cherry" to "apple, orange, cherry, limes, strawberries".

Analyzes text and compares it to a set of

unstructured data to extract similar concepts.

© 2014 International Business Machines Corporation

Page 22: Building Your Own Watson Powered Application on Bluemix

22© 2014 International Business Machines Corporation

Input: List of words to

expand and a corpus id

Output: List of expanded

concept with prevalence in

corpus

Concept Expansion

Hematoma, medtrans

© 2014 International Business Machines Corporation

Page 23: Building Your Own Watson Powered Application on Bluemix

23© 2014 International Business Machines Corporation

Message Resonance

Analyzes content and scores how well the

message is to be received by a target

community.

© 2014 International Business Machines Corporation

Page 24: Building Your Own Watson Powered Application on Bluemix

24© 2014 International Business Machines Corporation

Message Resonance

Input: Content to analyze

and a corpus identifier

Output: JSON object with

resonance rankings

Supports Cloud Computing and Big Data communities

© 2014 International Business Machines Corporation

Page 25: Building Your Own Watson Powered Application on Bluemix

25© 2014 International Business Machines Corporation

Visualization Rendering

Visualization Rendering in an SDK that drives

data visualization using JSON.

Charts are created using a set

of composable features

Infinite chart flexibility - one

chart widget may handle many

chart specifications

Supports Java, JavaScript, iOS and Android© 2014 International Business Machines Corporation

Page 26: Building Your Own Watson Powered Application on Bluemix

26

Feedback Tools

© 2014 International Business Machines Corporation

Each service provides a feedback mechanism in order to learn from the

community.

The feedback is PUT to the

service in JSON format.

Services leveraging this feedback

mechanism:

• User Modeling

• Concept Expansion

• Machine Translation

• Relationship Extraction

• Language Identification

Page 27: Building Your Own Watson Powered Application on Bluemix

27

Feedback Tools

© 2014 International Business Machines Corporation

The Question Answer service also has a Feedback API, of which the feedback is

used by Watson to increase precision and accuracy.

Page 28: Building Your Own Watson Powered Application on Bluemix

© 2014 International Business Machines Corporation© 2014 International Business Machines Corporation

User Modeling Demo: Node

28

Page 29: Building Your Own Watson Powered Application on Bluemix

29© 2014 International Business Machines Corporation

User Modeling Demo

• Developer Tools

• IBM SDK for Node

– https://www.ibm.com/developerworks/web/nodesdk/

• Cloud Foundry

– /cloudfoundry/cli in github

© 2014 International Business Machines Corporation

Page 30: Building Your Own Watson Powered Application on Bluemix

© 2014 International Business Machines Corporation© 2014 International Business Machines Corporation

Question and Answer Demo: Java on Liberty

30

Page 31: Building Your Own Watson Powered Application on Bluemix

31© 2014 International Business Machines Corporation

Question and Answer Demo

• Developer Tools

• Eclipse

– Rational Software Architect used on Mac in demo

• WebSphere Liberty Profile

– https://developer.ibm.com/wasdev/downloads/liberty-profile-using-

eclipse/

• IBM Eclipse Tools for BlueMix

– http://marketplace.eclipse.org/content/ibm-eclipse-tools-

bluemix#.VE6YtUgfBaY

© 2014 International Business Machines Corporation

Page 32: Building Your Own Watson Powered Application on Bluemix

32

Get hands on fast!

© 2014 International Business Machines Corporation

• Get a Bluemix account

• Try the Watson services

free of charge for 30 days

• Take the next step toward

further development or

production deployment

Page 33: Building Your Own Watson Powered Application on Bluemix

33© 2014 International Business Machines Corporation

IBM Bluemix

IBM Watson

facebook.com/ibmbluemix @ibmbluemixBluemix.net

Page 34: Building Your Own Watson Powered Application on Bluemix

© 2014 International Business Machines Corporation© 2014 International Business Machines Corporation

Question and Answer Session

34