Natural Language Processing (CSEP 517): Sequence Models
Noah Smith
c 2017 University of Washington nasmith@cs.washington.edu
April 17, 2017
1 / 98
Natural Language Processing (CSEP 517): Sequence Models Noah Smith - - PowerPoint PPT Presentation
Natural Language Processing (CSEP 517): Sequence Models Noah Smith 2017 c University of Washington nasmith@cs.washington.edu April 17, 2017 1 / 98 To-Do List Online quiz: due Sunday Read: Collins (2011), which has somewhat
1 / 98
2 / 98
◮ Once upon a time: rule systems and crafted rules ◮ Most common now: supervised learning from annotated data ◮ Frontier: less supervision (semi-, un-, reinforcement, distant, . . . ) 3 / 98
4 / 98
5 / 98
6 / 98
7 / 98
8 / 98
9 / 98
10 / 98
11 / 98
12 / 98
13 / 98
14 / 98
15 / 98
16 / 98
17 / 98
18 / 98
19 / 98
20 / 98
21 / 98
22 / 98
23 / 98
24 / 98
25 / 98
26 / 98
27 / 98
28 / 98
29 / 98
30 / 98
31 / 98
32 / 98
33 / 98
34 / 98
35 / 98
36 / 98
37 / 98
38 / 98
39 / 98
40 / 98
41 / 98
◮ Solve for si(∗) and bi(∗). ◮ Special base case for i = 1 to handle start state y0 (no max) ◮ General recurrence for i ∈ 2, . . . , ℓ − 1 ◮ Special case for i = ℓ to handle stopping probability
◮ ˆ
42 / 98
43 / 98
44 / 98
45 / 98
46 / 98
Y1 = N Y1 = V Y2 = N Y2 = V Y2 = A Y3 = N Y3 = V Y3 = A Y4 = N Y4 = V Y4 = A initial Y5 = Y1 = A Y0 = N Y0 = V Y0 = A
47 / 98
48 / 98
49 / 98
50 / 98
◮ Modal verbs ◮ Prepositions (on, to) ◮ Particles (off, up) ◮ Determiners (the, some) ◮ Pronouns (she, they) ◮ Conjunctions (and, or) 51 / 98
52 / 98
53 / 98
54 / 98
I know, right shake my head for your
you Facebook laugh out loud
55 / 98
I know, right shake my head for your
interjection acronym pronoun verb prep. det. adj. noun you Facebook laugh out loud
preposition proper noun 56 / 98
◮ The Georgia branch had taken on loan commitments . . . ◮ The average of interbank offered rates plummeted . . . 57 / 98
58 / 98
59 / 98
60 / 98
61 / 98
62 / 98
63 / 98
64 / 98
65 / 98
66 / 98
67 / 98
68 / 98
69 / 98
70 / 98
71 / 98
72 / 98
73 / 98
74 / 98
75 / 98
76 / 98
77 / 98
78 / 98
◮ Pick it uniformly at random from {1, . . . , n}. ◮ ˆ
ℓ∈L
◮ w ← w − α
◮ Pick it uniformly at random from {1, . . . , n}. ◮ ˆ
y∈Lℓ+1 w · Φ(xit, y)
◮ w ← w − α
80 / 98
81 / 98
i=1 ℓi):m i=1 ℓi
82 / 98
i=1 ℓi):m i=1 ℓi
83 / 98
84 / 98
85 / 98
86 / 98
87 / 98
88 / 98
89 / 98
90 / 98
91 / 98
92 / 98
93 / 98
94 / 98
95 / 98
96 / 98
97 / 98
98 / 98