Graph-Based Parsing
Joakim Nivre
Uppsala University Department of Linguistics and Philology joakim.nivre@lingfil.uu.se
Graph-Based Parsing 1(10)
Graph-Based Parsing Joakim Nivre Uppsala University Department of - - PowerPoint PPT Presentation
Graph-Based Parsing Joakim Nivre Uppsala University Department of Linguistics and Philology joakim.nivre@lingfil.uu.se Graph-Based Parsing 1(10) 1. Graph-Based Models 2. Projective Parsing 3. Non-Projective Parsing Graph-Based Parsing
Graph-Based Parsing 1(10)
Graph-Based Parsing 2(10)
Graph-Based Parsing 3(10)
K1
K2
Graph-Based Parsing 4(10)
OBJ PU PC DET ROOT She sent him a message by email . SBJ IOBJ PRED
Graph-Based Parsing 5(10)
Graph-Based Parsing 6(10)
First-Order Arc
d h h d
Second-Order Sibling Grand-Child
d s h h s d d h g g h d g d h h d g
Third-Order Tri-Sibling Grand-Sibling
d t s h h s t d d s h g g h s d g d s h h s d g
Graph-Based Parsing 7(10)
Graph-Based Parsing 8(10)
1 for i : 0..n and all d, c 2 C[i][i][d][c] ← 0.0 3 for m : 1..n 4 for i : 0..n−m 5 j ← i +m 6 C[i][j][−][2] ← maxi≤k<j C[i][k][→][1] + C[k +1][j][←][1] 7 C[i][j][←][0] ← C[i][j −1][→][1] + C[j][j][←][1] + Score(j, −, i) 8 C[i][j][→][0] ← C[i][i][→][1] + C[i +1][j][←][1] + Score(i, −, j) 9 C[i][j][←][0] ← max{C[i][j][←][0], maxi≤k<j C[i][k][−][2] + C[k][j][←][0] + Score(j, k, i)} 10 C[i][j][→][0] ← max{C[i][j][→][0], maxi<k≤j C[i][k][→][0] + C[k][j][−][2] + Score(i, k, j)} 11 C[i][j][←][1] ← maxi≤k<j C[i][k][←][1] + C[k][j][←][0] 12 C[i][j][→][1] ← maxi<k≤j C[i][k][→][0] + C[k][j][→][1] 13 return C[0][n][→][1] Graph-Based Parsing 9(10)
Graph-Based Parsing 10(10)