Upgrade to Pro — share decks privately, control downloads, hide ads and more …

使おうWatson! for Call for Code Challenge 2019 / L...

使おうWatson! for Call for Code Challenge 2019 / Let's use Watson for C4C 2019

2019-04-10 (水) Call for Code勉強会: Watson APIをためそう!のセッション
「使おうWatson! for Call for Code Challenge 2019」の資料です。

Kyoko Nishito

April 10, 2019
Tweet

More Decks by Kyoko Nishito

Other Decks in Technology

Transcript

  1. Watson! for Call for Code Challenge 2019 !O )2 109

    K Call for Code : Watson API (# # ! 19:4020:30 - NS DCA 0 4 2
  2. 4 .1/ 4 . 0 2 20 421 .1/ D

    02L D : 9 W: : :
  3. 6

  4. 7

  5. ! 8

  6. IBM Cloud  A I P P 9 A P

    I IBM Cloud https://ibm.biz/Bd2NBe
  7. 13 WatsonT h L n WatsonT h L U KfdO

    NVPI 2019 2 12 eiTPublic Cloud T L nUgcT WRSWVPI 1 -. .2 . 2 :- . 1 . 2 / 2 2 A AA A b Am d A eAoa Al a uhow a auhow 1 AC u t a A D n a vA a w a A D A (1 . I sr I y Ao vA psw A A A uhow a ( C A M uhow a D C ( C A M a hA A ucuc A i a D C ( C AA uhow a D lma uhow a C Avc i v uhowvA a vA 2 A C v vA ) ( v v vA a g i v A 2 A ) a a dboa lma a a D
  8. -. : J b 14 • ,a J • TRS

    N NP • . . : : I E W W • / : A. : : :
  9. REST   16  https://gateway.watsonplatform.net/ language-translator/api/v3/translate URL: https://gateway.watsonplatform.net/ language-translator/api/v3/translate

     : POST {"text":["Hello"], "model_id":"en-ja"} {"text":["Hello"], "model_id":"en-ja"}  !  API  {"text":["Hello"], "model_id":"en-ja"}  { "translations" : [ { "translation" : "" } ], "word_count" : 1, "character_count" : 5 }     "  
  10. / / 18 ü e : ahW tp ü l

    V P i tp L i ü Al / User:   P P s / V User:    x V / s V on R U u I s V L   "#!$ "#               
  11. 21 5463 L78 EBANW CE. @ : @ 9B@ /

    8 CBA B9 A 3 % 3 0 3 3 3 -2 3 3 3 % 0 8 EBA 3 - 3- 0 3 - 10 3 % -- 3 1 8 : -8 - % I 78 EBA 0EE E 8A N https://www.youtube.com/watch?v=ZRwsu4OXLeE
  12. ( ( ) ( ü rn U L aoli N

    N s  ü e g d s E •  (Entities) • (Relations) • (Concepts) •  (Keywords) •  (Sentiment) •  (Emotion)  •  (Categories) • (Semantic Roles) ) m
  13. 0 1, 3 , 0 ü 0 1, 3 o

    B i r 7 o y cIw N M 0 1, 3 , 0 D s D I 7 v e D D ( ) 7 7 I I
  14. 27 ( ) • l R () ( ) •

    G a lF R l n o c • e ni ( ( • D V R Fg • e • FT G F : V R Fg https://www.ibm.com/watson/services/visual-recognition/demo/ DEMO
  15. DOC ID / Month XX, 2018 / © 2018 IBM

    Corporation     https://text-to-speech-demo.ng.bluemix.net DEMO
  16. DOC ID / Month XX, 2018 / © 2018 IBM

    Corporation https://www.ibm.com/watson/jp-ja/developercloud/speech-to-text.html ) ( ( https://www.ibm.com/watson/jp-ja/developercloud/language-translator.html https://www.ibm.com/watson/jp-ja/developercloud/nl-classifier.html
  17. 30 © 2018 IBM Corporation     

    https://www.ibm.com/watson/jp-ja/developercloud/personality-insights.html DEMO https://personality-insights-demo.ng.bluemix.net/
  18. 31 © 2018 IBM Corporation ) (   

      https://tone-analyzer-demo.ng.bluemix.net/
  19. 35 (. ) R K rg Ynh dcT 1A B

    C A Yo L nhKM epliP / 3 / E2 Y KM / 3E2 Y bK / YsUaL / utT I m :CC B B
  20. C : 2M C 37 • ( 2 :.N •

    W . ) / • : 2 • ( a I C • . : 2 / . 2 . 2 B C
  21. / 38  cURL(Client for URLs ) URL so m

    W pr U U REST r C Watson API hcC: n e l (. miC d: / ) / ) / R a L curl
  22. M 39 . A P B C L I 1

    . 1 A R U K ( ) . ( L A ( ) . L AE (L IP ( Y 3:: 2 / 2
  23. . 40 © 2018 IBM Corporation .. ! / :

    https://ibm.biz/Bd2NBe
  24. . ( 46 A MYUT Kh L C ea 1

    A1 . 1 1 I K E ( ( 2 ) c I B/ b K iP RERgd 3 A : 3 : 1 3 LA
  25. K PI 50 ( 2 MLR C E P K

    T 1 1 . 1 1 K IA B P U Y ( ) ( K A L WE R /3 : . / / U
  26. 54 R A curl --user apikey:{apikey} --request POST -- header

    "Content-Type: application/json" --data "{¥"text¥":[¥"Hello¥"],¥"model_id¥":¥"en-es¥"}" "{url}/v3/translate?version=2018-05-01" ) 1A PB.BL I UW C {apikey} ) 4 A M ¥ {url} ) 4 A M ( ¥ 
  27. 55 RPQ curl --user apikey:{apikey} --request POST -- header "Content-Type:

    application/json" --data "{¥"text¥":[¥"Hello¥"],¥"model_id¥":¥"en-es¥"}" "{url}/v3/translate?version=2018-05-01" (. , . ( (. .( ( ¥T M (2 ,)( Y U B  O 4 D M ELSX A
  28. 56 le M c k n :( ./ : 4

    gh p r le M curl --user apikey:{apikey} --request POST -- header "Content-Type: application/json" --data "{¥"text¥":[¥"Hello¥"],¥"model_id¥":¥"en-es¥"}" "{url}/v3/translate?version=2018-05-01" ( i ¥ b am  - .) ). ( 4( ! 4
  29. 57 a d w Msi M 5 -. ) -

    z . ! w p n{ . kl z w Ms i M curl --user apikey:{apikey} --request POST -- header "Content-Type: application/json" --data "{¥"text¥":[¥"Hello¥"],¥"model_id¥":¥"en-ja¥"}" "{url}/v3/translate?version=2018-05-01" mj ( _ _¥etu - : 5 / :! } M ghytuor s W bc 5 / :! 
  30. IBM Code Patterns 2 . 0 . . 0 /2

    https://developer.ibm.com/patterns/ A . K A 2 H O : GH
  31. 63

  32. Cg b g m e h c Ci e b

    m e b gB m de e ib n b m gB b bb b lh e l e b b g g M e m l e b b b p p h b m I m e e ro m p m I m e e b gB m de e ib n u b e m a h I m e ib n b W me e e C e b I m e ib n b g b M a b I m e e b gB m de e ib n s C tm W b y s y C u u Cg t m d M b y II ah e m h e ib n a C h C gB m b h C e Cg s C ib w / / . Cg . Cg b ib / / . . /.m