Overview Argument structure advmod Negation Lin 1998
Dependency parses for NLU
Christopher Potts CS 244U: Natural language understanding Jan 24
1 / 37
Dependency parses for NLU Christopher Potts CS 244U: Natural - - PowerPoint PPT Presentation
Overview Argument structure advmod Negation Lin 1998 Dependency parses for NLU Christopher Potts CS 244U: Natural language understanding Jan 24 1 / 37 Overview Argument structure advmod Negation Lin 1998 Syntactic structure: My dog
Overview Argument structure advmod Negation Lin 1998
1 / 37
Overview Argument structure advmod Negation Lin 1998
ROOT go root My dog poss will not nsubj aux neg in prep lake pobj the det ROOT go root My dog poss will not nsubj aux neg lake prep_in the det
2 / 37
Overview Argument structure advmod Negation Lin 1998
3 / 37
Overview Argument structure advmod Negation Lin 1998
3 / 37
Overview Argument structure advmod Negation Lin 1998
1 Get a feel for Stanford dependencies. 2 Case study: advmod 3 Case study: capturing the semantic influence of negation. 4 A return to Lin 1998
3 / 37
Overview Argument structure advmod Negation Lin 1998
dep aux conj cc arg ref expl mod sdep auxpass cop subj comp agent nsubj csubj nsubjpass
attr ccomp xcomp compl mark rel acomp dobj iobj pobj advcl purpcl tmod rcmod amod infmod partmod num number appos nn abbrev advmod poss possessive prt det prep neg
4 / 37
Overview Argument structure advmod Negation Lin 1998
aux conj cc arg ref expl auxpass cop subj comp agent advcl 4 / 37
Overview Argument structure advmod Negation Lin 1998
4 / 37
Overview Argument structure advmod Negation Lin 1998
auxpass cop subj comp agent nsubj csubj nsubjpass
attr ccomp xcomp compl mark rel acomp dobj iobj pobj advcl purpcl tmod rcmod amod infmod 4 / 37
Overview Argument structure advmod Negation Lin 1998
ref expl mod sdep agent compl mark rel acomp advcl purpcl tmod rcmod amod infmod partmod num number appos nn abbrev advmod poss possessive prt det prep neg
4 / 37
Overview Argument structure advmod Negation Lin 1998
5 / 37
Overview Argument structure advmod Negation Lin 1998
5 / 37
Overview Argument structure advmod Negation Lin 1998
5 / 37
Overview Argument structure advmod Negation Lin 1998
5 / 37
Overview Argument structure advmod Negation Lin 1998
6 / 37
Overview Argument structure advmod Negation Lin 1998
7 / 37
Overview Argument structure advmod Negation Lin 1998
8 / 37
Overview Argument structure advmod Negation Lin 1998
9 / 37
Overview Argument structure advmod Negation Lin 1998
aux conj cc arg ref expl auxpass cop subj comp agent nsubj csubj nsubjpass
attr ccomp xcomp compl mark rel acomp dobj iobj pobj advcl purpcl tmod rcmod
10 / 37
Overview Argument structure advmod Negation Lin 1998
Al escaped nsubj Al might escape nsubj aux Al might have escaped nsubj aux aux
Sue saw nsubj stars dobj Gerald gave nsubj puppies iobj awards dobj Gerald gave nsubj awards dobj to prep puppies pobj Gerald gave nsubj awards dobj puppies prep_to
11 / 37
Overview Argument structure advmod Negation Lin 1998
Al said nsubj raining ccomp that it was complm nsubj aux
Kim wants nsubj win xcomp to aux Kim wants nsubj win xcomp to xsubj aux
12 / 37
Overview Argument structure advmod Negation Lin 1998
ref expl mod sdep compl mark rel acomp advcl purpcl tmod rcmod amod infmod partmod num number appos nn abbrev advmod poss possessive prt det prep neg
13 / 37
Overview Argument structure advmod Negation Lin 1998
Sam Everyone the student det
Sam 's possessive bike poss Sam bike poss
the happy student det amod the happy student det amod
prep linguistics pobj the happy student det amod linguistics prep_of the student det won rcmod who nsubj
14 / 37
Overview Argument structure advmod Negation Lin 1998
Edna is happy nsubj cop Edna seems happy nsubj cop Edna looked nsubj happy acomp Edna considers nsubj happy xcomp Sam nsubj
wonderfully happy advmod surprisingly amazingly happy advmod advmod not surprisingly happy neg advmod Edna is no way dep happy nsubj cop advmod
15 / 37
Overview Argument structure advmod Negation Lin 1998
Ivan and cc Penny conj left nsubj Ivan Penny conj_and left nsubj nsubj
Nobody sang nsubj and cc danced conj Nobody sang nsubj danced conj_and nsubj
16 / 37
Overview Argument structure advmod Negation Lin 1998
17 / 37
Overview Argument structure advmod Negation Lin 1998
18 / 37
Overview Argument structure advmod Negation Lin 1998
19 / 37
Overview Argument structure advmod Negation Lin 1998
19 / 37
Overview Argument structure advmod Negation Lin 1998
20 / 37
Overview Argument structure advmod Negation Lin 1998
1 Apply singular value decomposition to the PPMI+discounting matrix. 2 Inspect singular values; settle on 25 dimensions:
1 94 218 357 496 635 774 913 1068 1238 1408 1578 1748 1918 2088 2258 2428 2598 2768 2938
Value Rank 50 100 150 200 250 300
3 For rows (dependents): R[ , 1 : 25] × S[1 : 25, 1 : 25] 4 For columns (dependents): S[1 : 25, 1 : 25] × C[ , 1 : 25]T
21 / 37
Overview Argument structure advmod Negation Lin 1998
1 Apply singular value decomposition to the PPMI+discounting matrix. 2 Inspect singular values; settle on 25 dimensions:
1 5 9 13 18 23 28 33 38 43 48 53 58 63 68 73 78 83 88 93 98 104 110 116 122 128
Value Rank 50 100 150 200 250 300
3 For rows (dependents): R[ , 1 : 25] × S[1 : 25, 1 : 25] 4 For columns (dependents): S[1 : 25, 1 : 25] × C[ , 1 : 25]T
21 / 37
Overview Argument structure advmod Negation Lin 1998
22 / 37
Overview Argument structure advmod Negation Lin 1998
23 / 37
Overview Argument structure advmod Negation Lin 1998
24 / 37
Overview Argument structure advmod Negation Lin 1998
24 / 37
Overview Argument structure advmod Negation Lin 1998
24 / 37
Overview Argument structure advmod Negation Lin 1998
24 / 37
Overview Argument structure advmod Negation Lin 1998
25 / 37
Overview Argument structure advmod Negation Lin 1998
25 / 37
Overview Argument structure advmod Negation Lin 1998
25 / 37
Overview Argument structure advmod Negation Lin 1998
25 / 37
Overview Argument structure advmod Negation Lin 1998
not very happy neg advmod
slightly less happy advmod advmod advmod really not too happy advmod neg advmod 26 / 37
Overview Argument structure advmod Negation Lin 1998
27 / 37
Overview Argument structure advmod Negation Lin 1998
I did n't enjoy nsubj aux neg it dobj I never enjoy nsubj neg it dobj No
det enjoys nsubj it dobj
No
det friend poss enjoyed nsubj it dobj no time det did we enjoy prep_at aux nsubj it dobj I do n't think nsubj aux neg enjoy ccomp I will nsubj aux it dobj
28 / 37
Overview Argument structure advmod Negation Lin 1998
Op {det, amod} ... ... rel Op ... rel 29 / 37
Overview Argument structure advmod Negation Lin 1998
30 / 37
Overview Argument structure advmod Negation Lin 1998
30 / 37
Overview Argument structure advmod Negation Lin 1998
30 / 37
Overview Argument structure advmod Negation Lin 1998
30 / 37
Overview Argument structure advmod Negation Lin 1998
30 / 37
Overview Argument structure advmod Negation Lin 1998
30 / 37
Overview Argument structure advmod Negation Lin 1998
30 / 37
Overview Argument structure advmod Negation Lin 1998
30 / 37
Overview Argument structure advmod Negation Lin 1998
30 / 37
Overview Argument structure advmod Negation Lin 1998
the movie was not very good . the movie det was not very good nsubj cop neg advmod i rarely enjoy horror movies . i rarely enjoy dep advmod movies dobj horror nn few people saw this excellent movie . few people amod saw nsubj movie dobj this excellent det amod at no point did this movie impress me . no point det did this movie det impress prep_at aux nsubj me dobj no good musician would play elevator music . no good musician det amod would play nsubj aux music dobj elevator nn i do n't think that is a good idea . i do n't think nsubj aux neg idea ccomp that is a good complm cop det amod
31 / 37
Overview Argument structure advmod Negation Lin 1998
32 / 37
Overview Argument structure advmod Negation Lin 1998
1 Tokenize in a way that isolates and preserves clause-level punctuation.
2 Append a NEG suffix to every word appearing between a negation and a
3 A negation is any word matching this regex:
33 / 37
Overview Argument structure advmod Negation Lin 1998
good – 732,963 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.08 0.13
Cat = 0.01 (p = 0.152) Cat^2 = -0.02 (p < 0.001)
bad – 254,146 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.04 0.09 0.14 0.18 0.23
Cat = -0.2 (p < 0.001) Cat^2 = 0.01 (p < 0.001)
excellent – 136,404 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.03 0.07 0.12 0.16 0.21
Cat = 0.22 (p < 0.001)
terrible – 45,470 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.03 0.07 0.1 0.15 0.22 0.3
Cat = -0.28 (p < 0.001) Cat^2 = 0.02 (p < 0.001)
34 / 37
Overview Argument structure advmod Negation Lin 1998
good – 732,963 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.08 0.13
Cat = 0.01 (p = 0.152) Cat^2 = -0.02 (p < 0.001)
bad – 254,146 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.04 0.09 0.14 0.18 0.23
Cat = -0.2 (p < 0.001) Cat^2 = 0.01 (p < 0.001)
excellent – 136,404 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.03 0.07 0.12 0.16 0.21
Cat = 0.22 (p < 0.001)
terrible – 45,470 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.03 0.07 0.1 0.15 0.22 0.3
Cat = -0.28 (p < 0.001) Cat^2 = 0.02 (p < 0.001)
neg(good) – 169,772 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.07 0.12
Cat = -0.06 (p < 0.001) Cat^2 = -0.01 (p < 0.001)
neg(bad) – 113,865 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.04 0.09 0.14
Cat = -0.14 (p < 0.001) Cat^2 = -0.02 (p = 0.011)
neg(excellent) – 10,393 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.05 0.1 0.17
Cat = 0.15 (p < 0.001)
neg(terrible) – 9,936 tokens
Category
0.5 1.5 2.5 3.5 4.5 0.02 0.1 0.14 0.21
Cat = -0.25 (p < 0.001)
34 / 37
Overview Argument structure advmod Negation Lin 1998
1 The dictator claimed that no citizens were injured. 2 The Red Cross claimed that no citizens were injured. 3 They said it would be horrible, but they were wrong: I loved it!!!
35 / 37
Overview Argument structure advmod Negation Lin 1998
amod(romance-3, American-2) prep in(rates-7, romance-3) advmod(nothing-6, almost-5) nsubj(rates-7, nothing-6) dep(rates-7, higher-8) dobj(called-15, what-10) det(men-13, the-11) nn(men-13, movie-12) nsubj(called-15, men-13) aux(called-15, have-14) prepc than(higher-8, called-15) dep(called-15, meeting-17) dobj(meeting-17, cute-18) nsubj(is-22, that-21) ccomp(adorable-27, is-22) nsubj(adorable-27, boy-meets-girl-24) cop(adorable-27, seems-25) advmod(adorable-27, more-26) parataxis(rates-7, adorable-27) mark(take-32, if-28) nsubj(take-32, it-29) aux(take-32, does-30) neg(take-32, n’t-31) advcl(adorable-27, take-32) dobj(take-32, place-33) det(atmosphere-36, an-35) prep in(take-32, atmosphere-36) amod(boredom-41, correct-38) conj and(correct-38, acute-40) prep of(atmosphere-36, boredom-41) advmod(about-2, Just-1) advmod(example-7, about-2) det(example-7, the-3) advmod(enthralling-5, most-4) amod(example-7, enthralling-5)
∗,r,∗ ∗,∗,∗ × w,r,∗ ∗,r,∗ × ∗,r,w′ ∗,r,∗
36 / 37
Overview Argument structure advmod Negation Lin 1998
37 / 37