Compositional Semantics
Jacob Andreas
Compositional Semantics Jacob Andreas Problem 1 Each of the three - - PowerPoint PPT Presentation
Compositional Semantics Jacob Andreas Problem 1 Each of the three girls has a platypus. Each of the three girls climbed the mountain. How many platypuses? How many mountains? 2 Problem 1 Each of the three girls has a
Jacob Andreas
2
Each of the three girls has a platypus. Each of the three girls climbed the mountain. How many platypuses? How many mountains?
3
Each of the three girls has a platypus.
4
Each of the three girls climbed the mountain.
5
name type coastal Columbia city no Cooper river yes Charleston city yes
There are 128 cities in South Carolina.
6
Is Barack Obama from the United States?
Barack Obama was the 44th President of the United
him to the University of Washington in Seattle for a year…
7
It’s not enough to have structured representations of syntax: We also need structured representations of meaning.
8
It’s not enough to have structured representations of syntax: We also need structured representations of meaning. Today: How do we get from language to meaning?
10
11
12
13
14
15
16
17
18
The meaning of a statement is the set of possible worlds consistent with that statement. Here, a “possible world” is an assignment
19
20
Individuals Properties Relations
whale loves sad contains
21
worried
22
likes likes contains loves likes happy scared shark
23
loves loves loves sad sad sad sad
24
Individuals Properties Relations
whale={Lou}, sad={Pat,Sal} likes={(Pat,Sal),(Sal,Sam)}
25
worried Pat Sal Sam Lou likes likes loves likes happy scared shark worried Pat Sal Sam Lou loves contains loves likes scared shark worried Pat Sal Sam Lou likes likes contains likes happy scared human worried Pat Sal Sam Lou likes likes contains loves likes happy scared dog
26
worried Pat Sal Sam Lou likes likes loves likes happy scared shark worried Pat Sal Sam Lou loves contains loves likes scared shark worried Pat Sal Sam Lou likes likes contains likes happy scared human worried Pat Sal Sam Lou likes likes contains loves likes happy scared dog
27
worried Pat Sal Sam Lou likes likes loves likes happy scared shark worried Pat Sal Sam Lou loves contains loves likes scared shark worried Pat Sal Sam Lou likes likes contains likes happy scared human worried Pat Sal Sam Lou likes likes contains loves likes happy scared dog
30
worried Pat Sal Sam Lou likes likes loves likes happy scared shark worried Pat Sal Sam Lou loves contains loves likes scared shark worried Pat Sal Sam Lou likes likes contains likes happy scared human worried Pat Sal Sam Lou likes likes contains loves likes happy scared dog
31
worried Pat Sal Sam Lou likes loves likes happy scared whale
32
worried Pat Sal Sam Lou likes likes loves likes happy scared whale
33
34
35
36
37
38
39
40
42
43
44
45
46
48
shark(Lou) ∧ contains(Lou, Sam) Sam is inside Lou, a shark
49
shark(Lou) ∧ contains(Lou, Sam) Sam is inside Lou, a shark
50
shark(Lou) ∧ contains(Lou, Sam) Sam is inside Lou, a shark
51
shark(Lou) ∧ contains(Lou, Sam) Sam is inside Lou, a shark
52
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat
53
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat
54
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat
Ax.letter(x)?
55
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat
letter(λf.Ax.f(x))?
56
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat
??? Ax.letter(x)?
57
??? λyzx.sent(x,y,z) Lou Pat
?????
58
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat Object Bool Object Object Bool {Obj,Obj,Obj} Bool Object Bool
59
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat NP S NP NP S NP,NP,NP S NP S
60
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat NP NP S|NP ((S|NP)|NP)|NP S|(S|NP)
61
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat NP NP S/NP NP/(S/NP) ((S\NP)/NP)/NP
62
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat NP NP S/NP NP/(S/NP) ((S\NP)/NP)/NP NP Ax.letter(x)
63
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat NP NP S/NP NP/(S/NP) NP ((S\NP)/NP)/NP Ax.letter(x) (S\NP)/NP λzx.sent(x,Lou,z)
64
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat NP NP S/NP NP/(S/NP) NP ((S\NP)/NP)/NP Ax.letter(x) (S\NP)/NP λzx.sent(x,Lou,z) λx.sent(x,Lou,Ax.letter(x)) S\NP
65
λx.letter(x) λf.Ax.f(x) λyzx.sent(x,y,z) Lou Pat NP NP S/NP NP/(S/NP) NP ((S\NP)/NP)/NP Ax.letter(x) (S\NP)/NP λzx.sent(x,Lou,z) λx.sent(x,Lou,Ax.letter(x)) S\NP sent(Pat,Lou,Ax.letter(x)) S
66
67
69
Each of the three girls has a platypus. Each of the three girls climbed the mountain. ∀x.girl(x) → ∃y.platypus(y) ∧ has(x, y) ∃y.mountain(y) ∧ ∀x.girl(x) → climbed(x, y)
70
name type coastal Columbia city no Cooper river yes Charleston city yes
There are 128 cities in South Carolina
71
name type coastal Columbia city no Cooper river yes Charleston city yes
There are 128 cities in South Carolina
same(128, count x. city(x) ∧ in(x, SouthCarolina) ∧
72
Is Barack Obama from the United States?
Barack Obama was the 44th President of the United
him to the University of Washington in Seattle for a year…
73
Is Barack Obama from the United States?
Barack Obama was the 44th President of the United
him to the University of Washington in Seattle for a year…
from(Obama, United States) ∧ born(Obama, Hawaii, August 4) ∧
74
Is Barack Obama from the United States?
Barack Obama was the 44th President of the United
him to the University of Washington in Seattle for a year…
born(Obama, Hawaii, August 4) ∧ from(Obama, United States) ∧
born(x, y, z) → from(x, y) from(x, y) ∧ in(y, z) → from(x, z) in(Hawaii, United States) ∧
80
81
82
83
84
88
ling121: “Logical Semantics” Ted Briscoe’s lecture notes: https://www.cl.cam.ac.uk/teaching/1011/L107/semantics.pdf Mark Steedman, “The Syntactic Process”