softlayer bluemix summit 2015: bluemixでwatsonをつかいたおせ!

Download SoftLayer Bluemix Summit 2015: BluemixでWatsonをつかいたおせ!

Post on 16-Apr-2017

10.188 views

Category:

Software

4 download

Embed Size (px)

TRANSCRIPT

  • Copyright 2015 TIS Inc. All rights reserved.

    BluemixWatson

    201592

    TIS

  • Copyright 2015 TIS Inc. All rights reserved. 2

    ()TIS

    AI, IoT, SDI, OSS

    CloudConductorhttp://cloudconductor.org/

    Twitter: @blackaplysiaFacebook:

  • Copyright 2015 TIS Inc. All rights reserved. 3

    3

    Q1. Watson?Jeopardy!

    Bluemix16

  • Copyright 2015 TIS Inc. All rights reserved. 4

    3

    Q1. Watson?Jeopardy!

    Bluemix16

    Bluemix16

  • Copyright 2015 TIS Inc. All rights reserved. 5

    3

    Q2. Watson?WatsonMQTT

  • Copyright 2015 TIS Inc. All rights reserved. 6

    3

    Q2. Watson?WatsonMQTT

  • Copyright 2015 TIS Inc. All rights reserved. 7

    3

    Q3. Watson?WatsonIBM

  • Copyright 2015 TIS Inc. All rights reserved. 8

    3

    Q3. Watson?WatsonIBM

    ()

  • Copyright 2015 TIS Inc. All rights reserved. 9

    BluemixWatson

    (1) BluemixWatson(2) CurlCF(3)

    (a) Language Translation(b) Personality Insights(c) Natural Language Classifier

  • Copyright 2015 TIS Inc. All rights reserved. 10

    BluemixWatson

    (1) BluemixWatson(2) CurlCF(3)

    (a) Language Translation(b) Personality Insights(c) Natural Language Classifier

  • Copyright 2015 TIS Inc. All rights reserved. 11

    Watson?

    BluemixWatson

    Watson

    AIWatson

  • Copyright 2015 TIS Inc. All rights reserved. 12

    (practical)

    Oxford(2013)47%20()()

    ()

    http://www.oxfordmartin.ox.ac.uk/downloads/academic/The_Future_of_Employment.pdf

  • Copyright 2015 TIS Inc. All rights reserved. 13

    (practical)

    (intelligence)(cognitive task)

    1Watson=Watson QA

  • Copyright 2015 TIS Inc. All rights reserved. 14

    Watson QAWatson Explorer

    Jeopardy!74(3)

    Watson QA2Watson=Watson ExplorerWatson Analytics

    Watson Engagement AdvisorWatson QA

    Watson

  • Copyright 2015 TIS Inc. All rights reserved. 15

    Watson Explorer

    IBM WatsonExplorer(2015/4/16)http://www.ms-ins.com/news/fy2015/pdf/0416_1.pdf

    IBM Watson Explorer()

    ()

    IBM Watson ExplorerIBM Watson Content AnalyticsIBM InfoSphere Data ExplorerIBM Watson Content Analytics V3.5 IBMContent Analytics V3.0

  • Copyright 2015 TIS Inc. All rights reserved. 16

    BluemixWatson

    1Watson2WatsonBluemix

    BluemixWatson?

  • Copyright 2015 TIS Inc. All rights reserved. 17

    WatsonWhen was Mozart born?(1) (focus): when(2) (LAT): date of birth(3) LAT: 1756/1/27

    (4) :

    Wolfgang Amadeus Mozart was born on 27 January 1756.

  • Copyright 2015 TIS Inc. All rights reserved. 18

    Watson QA

    Watson QA

    &

    http://www.aaai.org/Magazine/Watson/watson.php

  • Copyright 2015 TIS Inc. All rights reserved. 19

    Watson QA

    Watson QA

    &

    http://www.aaai.org/Magazine/Watson/watson.php

    Relationship Extraction

    Speech to Text

    Speech to TextNatural LanguageClassifier

    Concept Insights

  • Copyright 2015 TIS Inc. All rights reserved. 20

    Watson QA

    Watson QA()16Bluemix

    3Watson=BluemixWatson

    BluemixWatson()

  • Copyright 2015 TIS Inc. All rights reserved. 21

    BluemixWatson

    16

    (1) Personality Insights(2) Question and Answer(3) Visual Recognition(4) Tradeoff Analysis(5) Text To Speech(6) Speech To Text(7) Alchemy API(8) Language Translation(9) Message Resonance

  • Copyright 2015 TIS Inc. All rights reserved. 22

    BluemixWatson

    (10) Dialog(11) Concept Insights(12) Retrieve and Rank

    Watson()(13) Relationship Extraction(14) Natural Language Classifier(15) Tone Analyzer

  • Copyright 2015 TIS Inc. All rights reserved. 23

    Watson

    PersonalityInsights

    100

    Question and Answer

    ()

    Visual Recognition

    ()

  • Copyright 2015 TIS Inc. All rights reserved. 24

    Watson

    TradeoffAnalysis

    1,000

    Text to Speech

    100

    Speech To Text

    1,000

  • Copyright 2015 TIS Inc. All rights reserved. 25

    Watson

    Alchemy API IBMAlchemy API

    Language Translation

    100

    62

    Message Resonance

    ()

  • Copyright 2015 TIS Inc. All rights reserved. 26

    Dialog ()

    Concept Insights

    ()

    Wikipedia

    Retrieve and Rank

    (1)

  • Copyright 2015 TIS Inc. All rights reserved. 27

    Watson()

    Relationship Extraction

    ()

    NaturalLanguage Classifier

    1,000

    Tone Analyzer

  • Copyright 2015 TIS Inc. All rights reserved. 28

    Watson

    WatsonWatson Explorer

    (Watson Content Analytics)BluemixWatson

    Speech To TextLanguage Translation

    (identify)

  • Copyright 2015 TIS Inc. All rights reserved. 29

    Watson

    Watson

    Watsonhttp://tm.softbank.jp/watson/

    IBM()()

    (1) (2) (3)

  • Copyright 2015 TIS Inc. All rights reserved. 30

    (practical)IBMWatson

    Watson(1) Watson QA ()(2) Watson Explorer(3) BluemixWatson

  • Copyright 2015 TIS Inc. All rights reserved. 31

    BluemixWatson

    (1) BluemixWatson(2) CurlCF(3)

    (a) Language Translation(b) Personality Insights(c) Natural Language Classifier

  • Copyright 2015 TIS Inc. All rights reserved. 32

    BluemixWatson

  • Copyright 2015 TIS Inc. All rights reserved. 33

    BluemixWatson

  • Copyright 2015 TIS Inc. All rights reserved. 34

    BluemixWatson

  • Copyright 2015 TIS Inc. All rights reserved. 35

    BluemixWatson

  • Copyright 2015 TIS Inc. All rights reserved. 36

    BluemixWatson

  • Copyright 2015 TIS Inc. All rights reserved. 37

    BluemixWatson

  • Copyright 2015 TIS Inc. All rights reserved. 38

    BluemixWatson

    (url, username,password)

  • Copyright 2015 TIS Inc. All rights reserved. 39

    BluemixWatson

    Bluemix?

  • Copyright 2015 TIS Inc. All rights reserved. 40

    BluemixWatson

    Bluemix?

    (Watson)

  • Copyright 2015 TIS Inc. All rights reserved. 41

    BluemixWatson

    Cloud FoundryWatson

    Watson

    Bluemix

    Cloud Foundry

  • Copyright 2015 TIS Inc. All rights reserved. 42

    BluemixWatson

    BluemixWatsonWatsonWatson

    Watson

    Watson

    Bluemix

    Cloud Foundry

  • Copyright 2015 TIS Inc. All rights reserved. 43

    BluemixWatson

    BluemixWatsoncf create-servicecf create-service-keycurl

    Watson

    Bluemix

    Cloud Foundry

  • Copyright 2015 TIS Inc. All rights reserved. 44

    cf - Cloud Foundry CLI

    Cloud Foundry(CLI)cfhttps://github.com/cloudfoundry/cli/releases http://docs.cloudfoundry.org/

    (64bit Linux)

    $ wget -O cf-linux64-6.12.2.tgz > https://cli.run.pivotal.io/> stable?release=linux64-binary&version=6.12.2&

    > source=github-rel$ sudo tar zxvf cf-linux64-6.12.2.tgz -C /usr/local/bin/$ cf -v # OK

    https://github.com/cloudfoundry/cli/releaseshttp://docs.cloudfoundry.org/

  • Copyright 2015 TIS Inc. All rights reserved. 45

    cfWatson

    Bluemix

    # cfBluemix(1)$ cf api https://api.ng.bluemix.net# Bluemix()$ cf login -u

    $ cf marketplace

    # $ cf marketplace | grep question

  • Copyright 2015 TIS Inc. All rights reserved. 46

    cfWatson

    $ cf create-service

    $ cf create-service question_and_answer > question_and_answer_free_plan

    > myqa

  • Copyright 2015 TIS Inc. All rights reserved. 47

    cfWatson

    $ cf create-service-key

    $ cf create-service-key myqa myqa-credentials

  • Copyright 2015 TIS Inc. All rights reserved. 48

    cfWatson

    (username,password, urljson)

    $ cf service-key

  • Copyright 2015 TIS Inc. All rights reserved. 49

    cfWatson

    $ cf service-key myqa myqa-credentialsGetting key myqa-credentials for service instance myqaas your-account...

    {password: ","url": ",username: "

    }

  • Copyright 2015 TIS Inc. All rights reserved. 50

    WatsonAPI

    WatsonAPI?

    Watson Developer Cloudhttp://www.ibm.com/smarterplanet/us/en/

    ibmwatson/developercloud/doc/

  • Copyright 2015 TIS Inc. All rights reserved. 51

    WatsonAPI

    WatsonAPI?

    Watson Developer Cloudhttp://www.ibm.com/smarterplanet/us/en/

    ibmwatson/developercloud/doc/

  • Copyright 2015 TIS Inc. All rights reserved. 52

    WatsonAPI

    REST API

  • Copyright 2015 TIS Inc. All rights reserved. 53

    WatsonAPI

    REST API

    required

    path: URIheader: httpbody: httpform: html

  • Copyright 2015 TIS Inc. All rights reserved. 54

    curlWatson(GET)

    $ curl -s -u ':' > /v1/services

    > | jq .[

    {"description": "Watson for the Travel Domain","name": "Travel Content Lab","id": "travel"

    },{"description": "Watson for the Healthcare Domain","name": "Healthcare Content Lab","id": "healthcare"

    }]

    jsonjq

  • Copyright 2015 TIS Inc. All rights reserved. 55

    curlWatson(POST)

    $ curl -s -u ':' > -H 'Content-Type: application/json' > -H 'Accept: application/json' > -H 'X-synctimeout: 30' > -d '{"question":{"questionText":"What is the best > Japanese restaurants in New York?"}} > /v1/question/travel

    > | jq -r '.[].question.evidencelist[0].text'Try one of the following: Little Vincent's, 329 New York Ave, Huntington, +1 631 423-9620. Italian food,pizza. Peter Luger's Steakhouse. Est. 1887 in Brooklynis one of the best steakhous