introduction to hidden markov models
play

Introduction to Hidden Markov Models CMSC 473/673 UMBC October 9 th - PowerPoint PPT Presentation

Introduction to Hidden Markov Models CMSC 473/673 UMBC October 9 th , 2017 673 Announcement: Graduate Paper Due this Wednesday 10/11 at 11:59 AM (< 2 days) Use project id paper1 for the submit utility Course Announcement: Assignment 2 Due


  1. Introduction to Hidden Markov Models CMSC 473/673 UMBC October 9 th , 2017

  2. 673 Announcement: Graduate Paper Due this Wednesday 10/11 at 11:59 AM (< 2 days) Use project id paper1 for the submit utility

  3. Course Announcement: Assignment 2 Due next Wednesday, 10/18 (~9 days) Any questions?

  4. Course Announcement: Midterm Monday, 10/30 (3 weeks) Format: In-class (75 minutes) You may bring any notes you created yourself; they must be turned in with the exam (photocopies are OK) Some practice questions will be out next Wednesday (10/18)

  5. Recap from last time…

  6. Expectation Maximization (EM) 0. Assume some value for your parameters Two step, iterative algorithm 1. E-step: count under uncertainty, assuming these parameters 2. M-step: maximize log-likelihood, assuming these uncertain counts estimated counts

  7. Counting Requires Marginalizing E-step: count under uncertainty, assuming these parameters

  8. Counting Requires Marginalizing E-step: count under uncertainty, assuming these parameters break into 4 disjoint pieces w z 2 & w z 3 & w z 4 & w z 1 & w

  9. EM Example 1: Three Coins/Class-based Unigrams Imagine three coins Flip 1 st coin (penny) unobserved: vowel or constonant? part of speech? If heads: flip 2 nd coin (dollar coin) observed: a , b , e , etc. If tails: flip 3 rd coin (dime) We run the code, vs. The run failed

  10. EM Example 2: Machine Translation Alignment Le chat est sur la chaise verte The cat is on the green chair Want : P( f | e ) But don’t know how to train this directly… Solution : Use P( a, f | e ), where a is an alignment Remember: marginalizing across all possible alignments

  11. IBM Model 1 (1993) f : vector of French words Le chat est sur la chaise verte (visualization of alignment) e : vector of English words The cat is on the green chair a : vector of alignment indices 0 1 2 3 4 6 5 t ( f j | e i ) : translation probability of the word f j given the word e i

  12. Learning the Alignments through EM 0. Assume some value for and compute other parameter values Two step, iterative algorithm 1. E-step: count alignments and translations under uncertainty, assuming these parameters le chat P( | “the cat”) le chat P( | “the cat”) 2. M-step: maximize log-likelihood (update parameters), using uncertain counts estimated counts

  13. Follow up: IBM Model 1 Parameters For IBM model 1, we can compute all parameters given translation parameters: How many of these are there? | French vocabulary | x | English vocabulary | From Rebecca: See Sec. 31 of the Knight tutorial for more about space considerations

  14. Alignment: Output and Complexities Component of machine translation systems Produce a translation lexicon automatically Cross-lingual projection/extraction of information Supervision for training other models (for example, neural MT systems) http://www.cis.upenn.edu/~ccb/figures/research-statement/pivoting.jpg

  15. Any Questions on What We’ve Seen of EM So Far?

  16. Hidden Markov Models …

  17. Agenda HMM Motivation (Part of Speech) and Brief Definition What is Part of Speech? HMM Detailed Definition HMM Tasks

  18. Hidden Markov Models Class-based Model Use different distributions to explain groupings of observations Sequence Model Bigram model of the classes , not the observations Implicitly model all possible class sequences Algorithms for finding best sequence, and for the marginal likelihood

  19. Hidden Markov Models: Part of Speech (i): Adjective Noun Verb Prep Noun Noun (ii): Noun Verb Noun Prep Noun Noun p(British Left Waffles on Falkland Islands) Bigram model Class-based Model all of the classes model class sequences

  20. Hidden Markov Models: Part of Speech (i): Adjective Noun Verb Prep Noun Noun (ii): Noun Verb Noun Prep Noun Noun p(British Left Waffles on Falkland Islands) Bigram model Class-based Model all of the classes model class sequences

  21. Hidden Markov Models: Part of Speech (i): Adjective Noun Verb Prep Noun Noun (ii): Noun Verb Noun Prep Noun Noun p(British Left Waffles on Falkland Islands) Bigram model Class-based Model all of the classes model class sequences

  22. Hidden Markov Models: Part of Speech (i): Adjective Noun Verb Prep Noun Noun (ii): Noun Verb Noun Prep Noun Noun p(British Left Waffles on Falkland Islands) Bigram model Class-based Model all of the classes model class sequences

  23. Hidden Markov Models: Part of Speech (i): Adjective Noun Verb Prep Noun Noun (ii): Noun Verb Noun Prep Noun Noun p(British Left Waffles on Falkland Islands) Bigram model Class-based Model all of the classes model class sequences 1. Explain this sentence as a sequence of (likely?) latent (unseen) tags (labels) 2. Produce a tag sequence for this sentence

  24. Agenda HMM Motivation (Part of Speech) and Brief Definition What is Part of Speech? HMM Detailed Definition HMM Tasks

  25. Brief Aside: Parts of Speech Classes of words that behave like one another in similar syntactic contexts

  26. Parts of Speech Classes of words that behave like one another in similar syntactic contexts Pronunciation (stress) can differ: object (noun: OB-ject) vs. object (verb: ob-JECT) It can help improve the inputs to other systems (text-to-speech, syntactic parsing)

  27. XKCD, #1771: https://imgs.xkcd.com/comics/it_was_i.png

  28. Parts of Speech fake Adjectives would-be Nouns red cats Verbs bread large happy Baltimore cat speak milk wettest UMBC give run Adapted from Luke Zettlemoyer

  29. Parts of Speech fake Adjectives would-be Nouns red cats Verbs bread large happy Baltimore cat speak milk wettest UMBC give run Prepositions Conjunctions and or if Determiners top in every because a under what the Adapted from Luke Zettlemoyer

  30. Parts of Speech fake Adjectives would-be Nouns red cats Verbs bread large happy Baltimore cat speak milk wettest UMBC give run “I can eat.” may can do Prepositions Conjunctions and or if Determiners top in every because a under what the Adapted from Luke Zettlemoyer

  31. Parts of Speech fake Adjectives would-be Nouns red cats Verbs bread large happy Baltimore cat speak milk wettest UMBC give run may can do Prepositions Conjunctions and or if Determiners top in every because a under what the Adapted from Luke Zettlemoyer

  32. Parts of Speech fake Adjectives would-be Nouns red cats Verbs bread large happy Baltimore cat speak milk wettest UMBC give Adverbs run happily recently may can do Prepositions Conjunctions and or if Determiners top in every because a under what the Adapted from Luke Zettlemoyer

  33. Parts of Speech fake Adjectives would-be Nouns red cats Verbs bread large happy Baltimore cat speak milk wettest UMBC give Adverbs run happily recently “Today, we eat there .” there may can then (location) do Prepositions Conjunctions and or if Determiners top in every because a under what the Adapted from Luke Zettlemoyer

  34. Parts of Speech fake Adjectives would-be Nouns red cats Verbs bread large happy Baltimore cat speak milk wettest UMBC give Adverbs run happily recently “ I ate.” “ There is a cat.” you I there there may can then (location) do Prepositions Conjunctions and or if Determiners top in every because a under what the Adapted from Luke Zettlemoyer

  35. Parts of Speech fake Adjectives would-be Nouns red cats Verbs bread large happy Baltimore cat speak milk wettest UMBC give Adverbs run happily Numbers recently 1,324 you I there one there may can then (location) do Prepositions Conjunctions and or if Determiners top in every because a under what the Adapted from Luke Zettlemoyer

  36. Parts of Speech Open class words fake Adjectives would-be Nouns red cats Verbs bread large happy Baltimore cat speak milk wettest UMBC give Adverbs run happily Numbers recently 1,324 you I there one there may can then (location) do Prepositions Conjunctions and or if Determiners top in every because a under what the Closed class words Adapted from Luke Zettlemoyer

  37. Parts of Speech Open class words fake non- Adjectives subsective would-be Nouns red cats Verbs bread large happy Baltimore cat intransitive speak milk wettest UMBC subsective give Kamp & Partee (1995) ditransitive Adverbs run happily Numbers transitive recently 1,324 you I there one there may can then (location) do Pronouns modals, Prepositions auxiliaries Conjunctions and or if Determiners top in every because a under what the Closed class words Adapted from Luke Zettlemoyer

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend