http demo clab cs cmu edu algo4nlp19 https piazza com
play

http://demo.clab.cs.cmu.edu/algo4nlp19/ - PowerPoint PPT Presentation

http://demo.clab.cs.cmu.edu/algo4nlp19/ https://piazza.com/class/jy617kmo6ub134 Chan Young Park Jong Hyuk Park Slide credit: Noah Smith Slide credit: Noah Smith Slide credit: Noah Smith Slide credit: Noah


  1. ▪ http://demo.clab.cs.cmu.edu/algo4nlp19/ ▪ https://piazza.com/class/jy617kmo6ub134 ▪ ▪ Chan Young Park ▪ Jong Hyuk Park ▪ ▪

  2. Slide credit: Noah Smith

  3. Slide credit: Noah Smith

  4. Slide credit: Noah Smith

  5. Slide credit: Noah Smith

  6. Slide credit: Noah Smith

  7. Slide credit: Noah Smith

  8. My legal name is Alexander Perchov.

  9. My legal name is Alexander Perchov. But all of my many friends dub me Alex, because that is a more flaccid-to-utter version of my legal name.

  10. My legal name is Alexander Perchov. But all of my many friends dub me Alex, because that is a more flaccid-to-utter version of my legal name. Mother dubs me Alexi-stop-spleening-me!, because I am always spleening her.

  11. My legal name is Alexander Perchov. But all of my many friends dub me Alex, because that is a more flaccid-to-utter version of my legal name. Mother dubs me Alexi-stop-spleening-me!, because I am always spleening her. If you want to know why I am always spleening her, it is because I am always elsewhere with friends, and disseminating so much currency, and performing so many things that can spleen a mother.

  12. My legal name is Alexander Perchov. But all of my many friends dub me Alex, because that is a more flaccid-to-utter version of my legal name. Mother dubs me Alexi-stop-spleening-me!, because I am always spleening her. If you want to know why I am always spleening her, it is because I am always elsewhere with friends, and disseminating so much currency, and performing so many things that can spleen a mother. Father used to dub me Shapka, for the fur hat I would don even in the summer month.

  13. My legal name is Alexander Perchov. But all of my many friends dub me Alex, because that is a more flaccid-to-utter version of my legal name. Mother dubs me Alexi-stop-spleening-me!, because I am always spleening her. If you want to know why I am always spleening her, it is because I am always elsewhere with friends, and disseminating so much currency, and performing so many things that can spleen a mother. Father used to dub me Shapka, for the fur hat I would don even in the summer month. He ceased dubbing me that because I ordered him to cease dubbing me that. It sounded boyish to me, and I have always thought of myself as very potent and generative.

  14. ▪ ▪ ▪ ▪

  15. ▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪

  16. ▪ ▪ ▪

  17. disseminating so much currency spending a lot of money

  18. ▪ ▪ ▪

  19. ▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪

  20. ▪ s p ee ch l a b

  21. ▪ ▪

  22. sent transmission: recovered transmission: English French recovered message: English’

  23. ▪ ▪ ▪ ▪ ▪ handwriting recognition ▪ document summarization ▪ dialog generation ▪ linguistic decipherment ▪

  24. ▪ ▪ ▪ ▪ ▪ ▪

  25. ▪ ▪ ▪

  26. ▪ ▪ ▪

  27. ▪ ▪ ▪ ▪

  28. ▪ ▪ Given a sequence of n random variables: ▪ We want a sequence probability model

  29. ▪ ▪ Given a sequence of n random variables: ▪ We want a sequence probability model There are |V| n possible sequences ▪

  30. ▪ Relax independence assumption:

  31. ▪ Relax independence assumption: ▪ Simplify notation:

  32. ▪ We want probability distribution over sequences of any length

  33. ▪ Probability distribution over sequences of any length ▪ Define always X n =STOP, where STOP is a special symbol

  34. ▪ Probability distribution over sequences of any length ▪ Define always X n =STOP, where STOP is a special symbol ▪ Then use a Markov process as before: ▪ We now have probability distribution over all sequences ▪ Intuition: at every step you have probability 𝛽 h to stop (conditioned on history) and (1- 𝛽 h ) to keep going

  35. ▪ ▪ ▪ ▪

  36. ▪ ▪

  37. ▪ ▪ ▪ ▪ ▪ ▪

  38. ▪ ▪ ▪ 198015222 the first 194623024 the same Training Counts 168504105 the following 158562063 the world … 14112454 the door ----------------- 23135851162 the *

  39. ▪ Bigram Model Trigram Model 197302 close the window 191125 198015222 the first 194623024 the same close the door 152500 close the gap 116451 close the thread 168504105 the following 158562063 the world 87298 close the deal … … 14112454 the door ----------------- ----------------- 23135851162 the * 3785230 close the * P(door | the) = 0.0006 P(door | close the) = 0.05

  40. ▪ ▪ ▪ ▪ ▪ ▪

  41. ▪ ▪ ▪

  42. ▪ ▪ ▪ ⇒

  43. ▪ ▪ ▪ ⇒ ▪ ▪ ⇒

  44. ▪ ▪ ▪ ▪ ▪ ▪

  45. ▪ ▪

  46. ▪ ▪ ▪ ▪ Held-Out Test Training Data Data Data Counts / parameters from Hyperparameters Evaluate here here from here

  47. ▪ ▪ ▪

  48. ▪ ▪ ▪ ▪ ▪

  49. ▪ ▪ ⇒ ▪ ⇒ ▪ ⇒ ▪ ▪ ▪

  50. ▪ ▪ ▪ ▪

  51. ▪ ▪ ▪ ▪ ▪ ▪ ▪

  52. ▪ unk unk ▪ unk ▪

  53. ▪ ▪ ▪ ▪ ▪ ▪ ▪

  54. Held-Out Test Training Data Data Data Counts / parameters from Hyperparameters Evaluate here here from here

  55. ▪ ▪ ▪

Recommend


More recommend