Lecture 17: Statistical Parsing with PCFG
Kai-Wei Chang CS @ University of Virginia kw@kwchang.net Couse webpage: http://kwchang.net/teaching/NLP16
1 CS6501-NLP
Lecture 17: Statistical Parsing with PCFG Kai-Wei Chang CS @ - - PowerPoint PPT Presentation
Lecture 17: Statistical Parsing with PCFG Kai-Wei Chang CS @ University of Virginia kw@kwchang.net Couse webpage: http://kwchang.net/teaching/NLP16 CS6501-NLP 1 Reading list v Look at Mike Collins note on PCFGs and lexicalized PCFG
Kai-Wei Chang CS @ University of Virginia kw@kwchang.net Couse webpage: http://kwchang.net/teaching/NLP16
1 CS6501-NLP
CS6501-NLP 2
CS6501-NLP 3
CS6501-NLP 4
CS6501-NLP 5
Slides are modified from Jason Eisner’s NLP course
CS6501-NLP 6
CS6501-NLP 7
S NP time VP VP flies PP P like NP Det an N arrow
CS6501-NLP 8
CS6501-NLP 9
CS6501-NLP 10
CS6501-NLP 11
CS6501-NLP 12
S NP time VP VP flies PP P like NP Det an N arrow
S NP VP| S) * p( S NP time VP| S NP VP )
S NP time VP VP PP
S NP time VP )
S NP time VP VP flies PP
S NP time VP ) * … VP PP
CS6501-NLP 13
S NP time VP VP flies PP P like NP Det an N arrow
S NP VP| S) * p( S NP time VP| S NP VP )
S NP time VP VP PP
S NP time VP )
S NP time VP VP flies PP
S NP time VP ) * … VP PP
CS6501-NLP 14
S NP time VP VP flies PP P like NP Det an N arrow
CS6501-NLP 15
How likely the sentence ”I love cat” occurs POS tags of ”I love cat” occurs How to learn the model?
CS6501-NLP 16
How likely the sentence ”I love cat” occurs Parse tree of ”I love cat” How to learn the model?
CS6501-NLP 17
How likely the sentence ”I love cat” occurs Parse tree of ”I love cat” How to learn the model?
CS6501-NLP 18
How likely the sentence ”I love cat” occurs Parse tree of ”I love cat” How to learn the model?
600.465 - Intro to NLP - J. Eisner 19
CS6501: NLP 20
1 7 = 1 2 + 2 7 1 3 + 3 7 1 4 + 4 7 1 5 + 5 7 1 6 + 6 7
600.465 - Intro to NLP - J. Eisner 21
Pay attention to the
600.465 - Intro to NLP - J. Eisner 22
Pay attention to the
600.465 - Intro to NLP - J. Eisner 23
Pay attention to the
600.465 - Intro to NLP - J. Eisner 24
Pay attention to the
600.465 - Intro to NLP - J. Eisner 25
600.465 - Intro to NLP - J. Eisner 26
⊗ is like “and”/∀: combines all of several pieces into an X ⊕ is like “or”/∃: considers the alternative ways to build the X
600.465 - Intro to NLP - J. Eisner 27
600.465 - Intro to NLP - J. Eisner 28
{true,false}
virtual function
CS6501-NLP 29
CS6501-NLP 30
How likely the sentence ”I love cat” occurs Parse tree of ”I love cat” How to learn the model?
CS6501-NLP 31
CS6501-NLP 32
CS6501-NLP 33
v POS-tagged v Manually annotated with phrase-structure trees
CS6501-NLP 34
CS6501-NLP 35
CS6501-NLP 36
CS6501-NLP 37
CS6501-NLP 38
[Johnson ’98, Klein&Manning ‘03]
CS6501-NLP 39
[Collins 99’, Charniak 00’]
CS6501-NLP 40
CS6501-NLP 41
CS6501-NLP 42
CS6501-NLP 43
CS6501-NLP 44
CS6501-NLP 45
CS6501-NLP 46
CS6501– Natural Language Processing 47
CS6501– Natural Language Processing 48
CS6501-NLP 49