overview
play

Overview Last Time Mid-Way Evaluation Forward Algorithm Quiz - PowerPoint PPT Presentation

University of Oslo : Department of Informatics INF4820: Algorithms for Artificial Intelligence and Natural Language Processing Chart Parsing Stephan Oepen & Erik Velldal Language Technology Group (LTG) October 28, 2015 Overview Last


  1. University of Oslo : Department of Informatics INF4820: Algorithms for Artificial Intelligence and Natural Language Processing Chart Parsing Stephan Oepen & Erik Velldal Language Technology Group (LTG) October 28, 2015

  2. Overview Last Time ◮ Mid-Way Evaluation ◮ Forward Algorithm ◮ Quiz & Bonus Points ◮ Syntactic Structure

  3. Overview Last Time ◮ Mid-Way Evaluation ◮ Forward Algorithm ◮ Quiz & Bonus Points ◮ Syntactic Structure Today ◮ Context-Free Grammar ◮ Treebanks ◮ Probabilistic CFGs ◮ Syntactic Parsing ◮ Na¨ ıve: Recursive-Descent ◮ Dynamic Programming: CKY

  4. Recall: Question (2): Language Modelling Group members at the Language Technology Group supervise a variety of topics for MSc projects in natural language processing. Many candidate projects are available on-line. Please make contact with us. (2) What is the probability of the bi-gram language technology when ignoring case and punctuation, and using Laplace smoothing?

  5. Recall: Interpreting the Questions? ? technology following right after language → P ( B | A ) ? language technology occuring somewhere → P ( A , B )

  6. Recall: Interpreting the Questions? ? technology following right after language → P ( B | A ) ? language technology occuring somewhere → P ( A , B ) ? language and technology occuring somewhere → P ( A , B )

  7. Recall: Interpreting the Questions? ? technology following right after language → P ( B | A ) ? language technology occuring somewhere → P ( A , B ) ? language and technology occuring somewhere → P ( A , B )

  8. Recall: Interpreting the Questions? ? technology following right after language → P ( B | A ) ? language technology occuring somewhere → P ( A , B ) ? language and technology occuring somewhere → P ( A , B ) Recall: Joint and Conditional Probabilities P ( A , B ) = P ( A ) × P ( B | A ) A ≡ � w i − 1 = language � B ≡ � w i = technology �

  9. Recall: Interpreting the Questions? ? technology following right after language → P ( B | A ) ? language technology occuring somewhere → P ( A , B ) ? language and technology occuring somewhere → P ( A , B ) Recall: Joint and Conditional Probabilities P ( A , B ) = P ( A ) × P ( B | A ) A ≡ � w i − 1 = language � B ≡ � w i = technology � Alternatively: A Complex Event A ≡ � w i − 1 = language ∧ w i = technology �

  10. Recall: Syntactic Structures Constituency ◮ Words tends to lump together into groups that behave like single units: we call them constituents . ◮ Constituency tests give evidence for constituent structure: ◮ interchangeable in similar syntactic environments. ◮ can be co-ordinated ◮ can be moved within a sentence as a unit

  11. Recall: Syntactic Structures Constituency ◮ Words tends to lump together into groups that behave like single units: we call them constituents . ◮ Constituency tests give evidence for constituent structure: ◮ interchangeable in similar syntactic environments. ◮ can be co-ordinated ◮ can be moved within a sentence as a unit (4) Kim read [a very interesting book about grammar] NP . Kim read [it] NP . (5) Kim [read a book] VP , [gave it to Sandy] VP , and [left] VP . (6) [Interesting books about grammar] I like. Examples from Linguistic Fundamentals for NLP: 100 Essentials from Morphology and Syntax. Bender (2013)

  12. Recall: Grammar Aids Understanding Formal grammars describe a language, giving us a way to: ◮ judge or predict well-formedness Kim was happy because passed the exam. Kim was happy because final grade was an A.

  13. Recall: Grammar Aids Understanding Formal grammars describe a language, giving us a way to: ◮ judge or predict well-formedness Kim was happy because passed the exam. Kim was happy because final grade was an A. ◮ make explicit structural ambiguities Have her report on my desk by Friday! I like to eat sushi with { chopsticks | tuna } .

  14. Recall: Grammar Aids Understanding Formal grammars describe a language, giving us a way to: ◮ judge or predict well-formedness Kim was happy because passed the exam. Kim was happy because final grade was an A. ◮ make explicit structural ambiguities Have her report on my desk by Friday! I like to eat sushi with { chopsticks | tuna } . ◮ derive abstract representations of meaning Kim gave Sandy a book. Kim gave a book to Sandy. Sandy was given a book by Kim.

  15. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP VP → V NP VP → VP PP PP → P NP NP → “nieve” NP → “Juan” NP → “Oslo” V → “am´ o” ✫ P → “en” ✪

  16. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP VP → V NP VP → VP PP PP → P NP NP → “nieve” NP → “Juan” NP → “Oslo” V → “am´ o” ✫ P → “en” ✪

  17. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP VP → V NP VP → VP PP PP → P NP NP → “nieve” NP → “Juan” NP → “Oslo” V → “am´ o” ✫ P → “en” ✪

  18. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  19. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  20. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  21. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  22. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  23. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  24. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  25. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  26. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  27. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP S VP → V NP NP VP VP → VP PP PP → P NP Juan VP PP NP → “nieve” V NP P NP NP → “Juan” am´ o nieve en Oslo ✞ ☎ NP → “Oslo” ✝ ✆ V → “am´ o” Juan am´ o nieve en Oslo ✫ P → “en” ✪

  28. A Grossly Simplified Example The Grammar of Spanish ✬ ✩ S → NP VP { VP ( NP ) } S VP → V NP { V ( NP ) } NP VP VP → VP PP { PP ( VP ) } PP → P NP { P ( NP ) } Juan VP PP NP → “nieve” { snow } V NP P NP NP → “Juan” { John } am´ o nieve en Oslo ✞ ☎ NP → “Oslo” { Oslo } ✝ ✆ V → “am´ o” { λ b λ a adore ( a , b ) } Juan am´ o nieve en Oslo { λ d λ c in ( c , d ) } ✫ P → “en” ✪

  29. Meaning Composition (Still Very Simplified) S: { in ( adore ( John , snow ) , Oslo ) } NP: { John } VP: { λ a in ( adore ( a , snow ) , Oslo ) } Juan VP: { λ a adore ( a , snow ) } PP: { λ c in ( c , Oslo ) } P: { λ d λ c in ( c , d ) } NP: { Oslo } V: { λ b λ a adore ( a , b ) } NP: { snow } ✎ ☞ en Oslo am´ o nieve ✍ VP → V NP { V ( NP ) } ✌

  30. Another Interpretation S: { adore (John , in ( snow , Oslo ) } NP: { John } VP: { λ a adore ( a , in ( snow , Oslo ) } Juan V: { λ b λ a adore ( a , b ) } NP: { in ( snow , Oslo ) } am´ o NP: { snow } PP: { λ c in ( c , Oslo ) } nieve P: { λ d λ c in ( c , d ) } NP: { Oslo } ✎ ☞ en Oslo ✍ NP → NP PP { PP ( NP ) } ✌

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