Natural Language Processing (CSE 490U): Compositional Semantics
Noah Smith
c 2017 University of Washington nasmith@cs.washington.edu
March 1, 2017
1 / 56
Natural Language Processing (CSE 490U): Compositional Semantics - - PowerPoint PPT Presentation
Natural Language Processing (CSE 490U): Compositional Semantics Noah Smith 2017 c University of Washington nasmith@cs.washington.edu March 1, 2017 1 / 56 Bridging the Gap between Language and the World In order to link NL to a knowledge
1 / 56
2 / 56
3 / 56
4 / 56
◮ “I wanna eat someplace that’s close to UW” ◮ “something not too spicy” 5 / 56
◮ “I wanna eat someplace that’s close to UW” ◮ “something not too spicy”
◮ “can Karen eat at Schultzy’s?” 6 / 56
◮ “I wanna eat someplace that’s close to UW” ◮ “something not too spicy”
◮ “can Karen eat at Schultzy’s?”
7 / 56
8 / 56
9 / 56
◮ If R is an n-ary relation and t1, . . . , tn are terms, then
◮ If φ is a formula, then its negation, ¬φ, is a formula. ◮ If φ and ψ are formulas, then binary logical connectives can be
◮ φ ∧ ψ ◮ φ ∨ ψ ◮ φ ⇒ ψ ◮ φ ⊕ ψ ◮ If φ is a formula and v is a variable, then quantifiers can be
◮ Universal quantifier: ∀v, φ ◮ Existential quantifier: ∃v, φ
10 / 56
11 / 56
12 / 56
13 / 56
14 / 56
15 / 56
16 / 56
17 / 56
18 / 56
19 / 56
20 / 56
21 / 56
◮ If φ is a FOL formula and v is a variable, then λv.φ is a
◮ It can be reduced by substituting ψ in for every instance of v
22 / 56
◮ If φ is a FOL formula and v is a variable, then λv.φ is a
◮ It can be reduced by substituting ψ in for every instance of v
23 / 56
◮ If φ is a FOL formula and v is a variable, then λv.φ is a
◮ It can be reduced by substituting ψ in for every instance of v
24 / 56
◮ If φ is a FOL formula and v is a variable, then λv.φ is a
◮ It can be reduced by substituting ψ in for every instance of v
25 / 56
◮ If φ is a FOL formula and v is a variable, then λv.φ is a
◮ It can be reduced by substituting ψ in for every instance of v
26 / 56
◮ If φ is a FOL formula and v is a variable, then λv.φ is a
◮ It can be reduced by substituting ψ in for every instance of v
27 / 56
28 / 56
29 / 56
30 / 56
31 / 56
32 / 56
33 / 56
34 / 56
35 / 56
36 / 56
37 / 56
38 / 56
◮ S/NP is “an S, except that it lacks an NP to the right” ◮ S\NP is “an S, except that it lacks an NP to its left” ◮ (S\NP)/NP is “an S, except that it lacks an NP to its right,
39 / 56
40 / 56
41 / 56
42 / 56
43 / 56
44 / 56
45 / 56
46 / 56
47 / 56
48 / 56
49 / 56
50 / 56
51 / 56
52 / 56
53 / 56
54 / 56
55 / 56
56 / 56