Natural Language Processing (CSE 517): Dependency Structure
Noah Smith
c 2016 University of Washington nasmith@cs.washington.edu
February 24, 2016
1 / 45
Natural Language Processing (CSE 517): Dependency Structure Noah - - PowerPoint PPT Presentation
Natural Language Processing (CSE 517): Dependency Structure Noah Smith 2016 c University of Washington nasmith@cs.washington.edu February 24, 2016 1 / 45 Why might you want to use a generative classifier, such as Naive Bayes, as opposed
1 / 45
2 / 45
3 / 45
SROOT NPS DTNP The NNNP luxury NNNP auto NNNP maker NPS JJNP last NNNP year VPS VBDVP sold NPVP CDNP 1,214 NNNP cars PPVP INPP in NPPP DTNP the NNPNP U.S.
4 / 45
5 / 45
Ssold NPmaker DTThe The NNluxury luxury NNauto auto NNmaker maker NPyear JJlast last NNyear year VPsold VBDsold sold NPcars CD1,214 1,214 NNcars cars PPin INin in NPU.S. DTthe the NNPU.S. U.S.
6 / 45
7 / 45
8 / 45
9 / 45
◮ K-best parsing: Huang and Chiang (2005) 10 / 45
◮ K-best parsing: Huang and Chiang (2005)
◮ These exploit dynamic programming algorithms for training
11 / 45
◮ Pick it uniformly at random from {1, . . . , n}. ◮ ˆ
t∈Txit
◮ w ← w − α
12 / 45
13 / 45
14 / 45
◮ K-best parsing: Huang and Chiang (2005)
◮ These exploit dynamic programming algorithms for training
15 / 45
◮ K-best parsing: Huang and Chiang (2005)
◮ These exploit dynamic programming algorithms for training
◮ Socher et al. (2013) define compositional vector grammars
◮ Dyer et al. (2016): recurrent neural network grammars,
16 / 45
17 / 45
18 / 45
19 / 45
20 / 45
21 / 45
22 / 45
23 / 45
24 / 45
25 / 45
26 / 45
27 / 45
28 / 45
◮ Stanford dependencies are a popular example (de Marneffe
29 / 45
30 / 45
31 / 45
32 / 45
i k Nxh j + 1 k Nxc i j Nxh p(Nxh Nxc | Nxh) i k Nxh j + 1 k Nxh i j Nxc p(Nxc Nxh | Nxh)
33 / 45
34 / 45
35 / 45
36 / 45
37 / 45
38 / 45
39 / 45
◮ horizontal (among siblings) ◮ vertical (grandparents)
◮ See the reading (McDonald et al., 2005)! 40 / 45
ROOT ATT ATT SBJ PU VC TMP PC ATT 41 / 45
◮ Very attractive from a linguistic point of view ◮ Large-scale annotation has been a challenge.
◮ Syntax is a scaffold for semantics (as we’ll see next week), as
◮ Features in text categorization (e.g., sentiment) 42 / 45
43 / 45
44 / 45
45 / 45