Natural Language Processing (CSE 490U): Sequence Models (II)
Noah Smith
c 2017 University of Washington nasmith@cs.washington.edu
January 30–February 3, 2017
1 / 63
Natural Language Processing (CSE 490U): Sequence Models (II) Noah - - PowerPoint PPT Presentation
Natural Language Processing (CSE 490U): Sequence Models (II) Noah Smith 2017 c University of Washington nasmith@cs.washington.edu January 30February 3, 2017 1 / 63 Mid-Quarter Review: Results Thank you! Going well: Content!
1 / 63
2 / 63
◮ 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
◮ ˆ
3 / 63
4 / 63
5 / 63
6 / 63
7 / 63
8 / 63
9 / 63
10 / 63
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
11 / 63
12 / 63
13 / 63
14 / 63
◮ Modal verbs ◮ Prepositions (on, to) ◮ Particles (off, up) ◮ Determiners (the, some) ◮ Pronouns (she, they) ◮ Conjunctions (and, or) 15 / 63
16 / 63
17 / 63
18 / 63
I know, right shake my head for your
you Facebook laugh out loud
19 / 63
I know, right shake my head for your
interjection acronym pronoun verb prep. det. adj. noun you Facebook laugh out loud
preposition proper noun 20 / 63
◮ The Georgia branch had taken on loan commitments . . . ◮ The average of interbank offered rates plummeted . . . 21 / 63
22 / 63
23 / 63
24 / 63
25 / 63
26 / 63
27 / 63
28 / 63
29 / 63
30 / 63
31 / 63
32 / 63
33 / 63
34 / 63
35 / 63
36 / 63
37 / 63
38 / 63
39 / 63
40 / 63
41 / 63
42 / 63
◮ 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 − α
44 / 63
45 / 63
i=1 ℓi):m i=1 ℓi
46 / 63
i=1 ℓi):m i=1 ℓi
47 / 63
48 / 63
49 / 63
50 / 63
51 / 63
52 / 63
53 / 63
54 / 63
55 / 63
56 / 63
57 / 63
58 / 63
59 / 63
60 / 63
61 / 63
62 / 63
63 / 63