Emma Strubell
Algorithms for NLP
CS 11-711 · Fall 2020
Algorithms for NLP CS 11-711 Fall 2020 Lecture 11: Syntactic - - PowerPoint PPT Presentation
Algorithms for NLP CS 11-711 Fall 2020 Lecture 11: Syntactic parsing and context-free grammars Emma Strubell Announcements Fridays recitation will be a P2 Q&A + questions to work through. 2 Ambiguity I saw the woman with the
Emma Strubell
CS 11-711 · Fall 2020
2
3
3
Who has the telescope?
3
Who has the telescope?
Who or what is wrapped in paper?
3
Who has the telescope?
Who or what is wrapped in paper?
Event of perception or assault?
4
The move followed a round of similar increases by other lenders, reflecting a continuing decline in that market.
5
Canadian Utilities had 1988 revenue of $ 1.16 billion , mainly from its natural gas and electric utility businesses in Alberta , where the company serves about 800,000 customers .
5
Canadian Utilities had 1988 revenue of $ 1.16 billion , mainly from its natural gas and electric utility businesses in Alberta , where the company serves about 800,000 customers .
5
Canadian Utilities had 1988 revenue of $ 1.16 billion , mainly from its natural gas and electric utility businesses in Alberta , where the company serves about 800,000 customers .
6
7
7
7
7
constituency (aka phrase-structure) tree
8
8
8
■ S: a sentence
8
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, …
8
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, … ■ VP (verb phrase): ate a sausage, barked, …
8
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, … ■ VP (verb phrase): ate a sausage, barked, … ■ PP (prepositional phrases): with a friend, in a car, …
8
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, … ■ VP (verb phrase): ate a sausage, barked, … ■ PP (prepositional phrases): with a friend, in a car, …
8
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, … ■ VP (verb phrase): ate a sausage, barked, … ■ PP (prepositional phrases): with a friend, in a car, …
■ PN: pronoun
8
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, … ■ VP (verb phrase): ate a sausage, barked, … ■ PP (prepositional phrases): with a friend, in a car, …
■ PN: pronoun ■ D: determiner
8
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, … ■ VP (verb phrase): ate a sausage, barked, … ■ PP (prepositional phrases): with a friend, in a car, …
■ PN: pronoun ■ D: determiner ■ V: verb
8
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, … ■ VP (verb phrase): ate a sausage, barked, … ■ PP (prepositional phrases): with a friend, in a car, …
■ PN: pronoun ■ D: determiner ■ V: verb ■ N: noun
8
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, … ■ VP (verb phrase): ate a sausage, barked, … ■ PP (prepositional phrases): with a friend, in a car, …
■ PN: pronoun ■ D: determiner ■ V: verb ■ N: noun ■ P: preposition
9
(S (NP (PN My) (N dog) ) (VP (V ate) (NP (D a) (N sausage) ) ) )
10
constituency (aka phrase-structure) tree
10
constituency (aka phrase-structure) tree dependency tree My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
11
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
11
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
11
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
11
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
11
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
11
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
11
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
11
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
12
Recovering shallow semantics
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
12
■ Some semantic information can be (approximately) derived from syntactic information
Recovering shallow semantics
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
12
■ Some semantic information can be (approximately) derived from syntactic information ■ Subjects (nsubj) are (often) agents: initiators / doers of an action
Recovering shallow semantics
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
12
■ Some semantic information can be (approximately) derived from syntactic information ■ Subjects (nsubj) are (often) agents: initiators / doers of an action ■ Direct objects (dobj) are (often) patients: affected entities
Recovering shallow semantics
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
12
■ Some semantic information can be (approximately) derived from syntactic information ■ Subjects (nsubj) are (often) agents: initiators / doers of an action ■ Direct objects (dobj) are (often) patients: affected entities ■ Even for agents and patients, consider:
Recovering shallow semantics
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
12
■ Some semantic information can be (approximately) derived from syntactic information ■ Subjects (nsubj) are (often) agents: initiators / doers of an action ■ Direct objects (dobj) are (often) patients: affected entities ■ Even for agents and patients, consider: ■ Mary is baking a cake in the oven
Recovering shallow semantics
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
12
■ Some semantic information can be (approximately) derived from syntactic information ■ Subjects (nsubj) are (often) agents: initiators / doers of an action ■ Direct objects (dobj) are (often) patients: affected entities ■ Even for agents and patients, consider: ■ Mary is baking a cake in the oven ■ A cake is baking in the oven
Recovering shallow semantics
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
12
■ Some semantic information can be (approximately) derived from syntactic information ■ Subjects (nsubj) are (often) agents: initiators / doers of an action ■ Direct objects (dobj) are (often) patients: affected entities ■ Even for agents and patients, consider: ■ Mary is baking a cake in the oven ■ A cake is baking in the oven ■ In general, it is not trivial even for the most shallow forms of semantics
Recovering shallow semantics
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
12
■ Some semantic information can be (approximately) derived from syntactic information ■ Subjects (nsubj) are (often) agents: initiators / doers of an action ■ Direct objects (dobj) are (often) patients: affected entities ■ Even for agents and patients, consider: ■ Mary is baking a cake in the oven ■ A cake is baking in the oven ■ In general, it is not trivial even for the most shallow forms of semantics ■ e.g. prepositions: in can encode direction, position, temporal information, …
Recovering shallow semantics
My dog ate a sausage
root
nsubj poss root dobj det
PN N V D N
13
13
13
14
■ S: a sentence ■ NP (noun phrase): My dog, a sandwich, lakes, … ■ VP (verb phrase): ate a sausage, barked, … ■ PP (prepositional phrases): with a friend, in a car, …
■ PN: pronoun ■ D: determiner ■ V: verb ■ N: noun ■ P: preposition
15
15
15
15
■ Replacement
15
■ Replacement ■ Substitution by proform
15
■ Replacement ■ Substitution by proform ■ Movement: Clefting, preposing, passive
15
■ Replacement ■ Substitution by proform ■ Movement: Clefting, preposing, passive ■ Modification
15
■ Replacement ■ Substitution by proform ■ Movement: Clefting, preposing, passive ■ Modification ■ Coordination / conjunction
15
■ Replacement ■ Substitution by proform ■ Movement: Clefting, preposing, passive ■ Modification ■ Coordination / conjunction ■ Ellipsis / deletion
16
16
16
He went to and came from the store.
16
He went to and came from the store. I will go → I’ll go I want to go → I wanna go a le centre → au centre La velocité des ondes sismiques
17
17
from a word.
17
from a word.
17
from a word.
Afyonkarahisarlılaştırabildiklerimizdenmişsinizcesinee
17
from a word.
Afyonkarahisarlılaştırabildiklerimizdenmişsinizcesinee as if you are one of the people that we thought to be originating from Afyonkarahisar
18
18
18
Grammar (CFG)
ROOT → S NP → NP PP S → NP VP VP → VBP NP NP → DT NN VP → VBP NP PP NP → NN NNS PP → IN NP
18
Grammar (CFG) Lexicon
NN → interest NNS → raises VBP → interest VBP → raises … ROOT → S NP → NP PP S → NP VP VP → VBP NP NP → DT NN VP → VBP NP PP NP → NN NNS PP → IN NP
18
Grammar (CFG) Lexicon
NN → interest NNS → raises VBP → interest VBP → raises … ROOT → S NP → NP PP S → NP VP VP → VBP NP NP → DT NN VP → VBP NP PP NP → NN NNS PP → IN NP
19
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
20
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
20
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
21
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
21
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
22
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
22
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
23
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
23
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
24
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
24
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
25
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
25
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
26
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
26
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
27
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
28
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
28
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
29
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
29
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
30
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
30
Grammar (CFG) Lexicon
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP VP → V VP → V NP VP → VP PP NP → NP PP NP → D N NP → PN PP → P NP
31
N a set of non-terminal symbols (or variables) Σ a set of terminal symbols (disjoint from N) R a set of rules or productions, each of the form A → β , where A is a non-terminal, β is a string of symbols from the infinite set of strings (Σ∪N)∗ S a designated start symbol and a member of N
31
N a set of non-terminal symbols (or variables) Σ a set of terminal symbols (disjoint from N) R a set of rules or productions, each of the form A → β , where A is a non-terminal, β is a string of symbols from the infinite set of strings (Σ∪N)∗ S a designated start symbol and a member of N
VP , NP , S, PP , … V, N, P…
31
N a set of non-terminal symbols (or variables) Σ a set of terminal symbols (disjoint from N) R a set of rules or productions, each of the form A → β , where A is a non-terminal, β is a string of symbols from the infinite set of strings (Σ∪N)∗ S a designated start symbol and a member of N
VP , NP , S, PP , … V, N, P… saw, telescope, the, girl, …
31
N a set of non-terminal symbols (or variables) Σ a set of terminal symbols (disjoint from N) R a set of rules or productions, each of the form A → β , where A is a non-terminal, β is a string of symbols from the infinite set of strings (Σ∪N)∗ S a designated start symbol and a member of N
VP , NP , S, PP , … V, N, P… saw, telescope, the, girl, … NP → NP PP , …
31
N a set of non-terminal symbols (or variables) Σ a set of terminal symbols (disjoint from N) R a set of rules or productions, each of the form A → β , where A is a non-terminal, β is a string of symbols from the infinite set of strings (Σ∪N)∗ S a designated start symbol and a member of N
VP , NP , S, PP , … V, N, P… saw, telescope, the, girl, … NP → NP PP , … ROOT, TOP
32
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP (NP a girl) (VP ate a sandwich) VP → V VP → V NP (V ate) (NP a sandwich) VP → VP PP (VP saw a girl) (PP with a telescope) NP → NP PP (NP a girl) (PP with a sandwich) NP → D N (D a) (N sandwich) NP → PN PP → P NP (P with) (NP a sandwich)
32
, NP , PP , N, V, PN, P}
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP (NP a girl) (VP ate a sandwich) VP → V VP → V NP (V ate) (NP a sandwich) VP → VP PP (VP saw a girl) (PP with a telescope) NP → NP PP (NP a girl) (PP with a sandwich) NP → D N (D a) (N sandwich) NP → PN PP → P NP (P with) (NP a sandwich)
32
, NP , PP , N, V, PN, P}
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP (NP a girl) (VP ate a sandwich) VP → V VP → V NP (V ate) (NP a sandwich) VP → VP PP (VP saw a girl) (PP with a telescope) NP → NP PP (NP a girl) (PP with a sandwich) NP → D N (D a) (N sandwich) NP → PN PP → P NP (P with) (NP a sandwich)
32
, NP , PP , N, V, PN, P}
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP (NP a girl) (VP ate a sandwich) VP → V VP → V NP (V ate) (NP a sandwich) VP → VP PP (VP saw a girl) (PP with a telescope) NP → NP PP (NP a girl) (PP with a sandwich) NP → D N (D a) (N sandwich) NP → PN PP → P NP (P with) (NP a sandwich)
32
, NP , PP , N, V, PN, P}
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP (NP a girl) (VP ate a sandwich) VP → V VP → V NP (V ate) (NP a sandwich) VP → VP PP (VP saw a girl) (PP with a telescope) NP → NP PP (NP a girl) (PP with a sandwich) NP → D N (D a) (N sandwich) NP → PN PP → P NP (P with) (NP a sandwich)
32
, NP , PP , N, V, PN, P}
N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP (NP a girl) (VP ate a sandwich) VP → V VP → V NP (V ate) (NP a sandwich) VP → VP PP (VP saw a girl) (PP with a telescope) NP → NP PP (NP a girl) (PP with a sandwich) NP → D N (D a) (N sandwich) NP → PN PP → P NP (P with) (NP a sandwich) inner rules
32
, NP , PP , N, V, PN, P}
preterminal rules N → girl N → telescope N → sandwich PN → I V → saw V → ate P → with P → in D → a D → the S → NP VP (NP a girl) (VP ate a sandwich) VP → V VP → V NP (V ate) (NP a sandwich) VP → VP PP (VP saw a girl) (PP with a telescope) NP → NP PP (NP a girl) (PP with a sandwich) NP → D N (D a) (N sandwich) NP → PN PP → P NP (P with) (NP a sandwich) inner rules
33
What can be a valid subtree is only effected by the phrase type (VP) but not the context.
33
Example contexts: What can be a valid subtree is only effected by the phrase type (VP) but not the context.
33
Example contexts: What can be a valid subtree is only effected by the phrase type (VP) but not the context. not grammatical
34
agreement in number, resulting in this coordination ambiguity.
34
agreement in number, resulting in this coordination ambiguity.
coordination
34
agreement in number, resulting in this coordination ambiguity.
coordination bark may be a noun or a verb
34
agreement in number, resulting in this coordination ambiguity.
coordination bark may be a noun or a verb this tree would be ruled out if the context could be captured (subject-verb agreement)
35
35
35
36
36
“Put the block in the box on the table in the kitchen.”
36
“Put the block in the box on the table in the kitchen.”
36
“Put the block in the box on the table in the kitchen.”
36
“Put the block in the box on the table in the kitchen.”
36
“Put the block in the box on the table in the kitchen.”
Catalan numbers:
37
Canadian Utilities had 1988 revenue of $ 1.16 billion , mainly from its natural gas and electric utility businesses in Alberta , where the company serves about 800,000 customers .
38
38
They cooked the beans in the pot on the stove with handles.
38
They cooked the beans in the pot on the stove with handles.
The puppy tore up the staircase
38
They cooked the beans in the pot on the stove with handles.
The puppy tore up the staircase
The tourists objected to the guide that they couldn’t hear. She knows you like the back of her hand.
38
They cooked the beans in the pot on the stove with handles.
The puppy tore up the staircase
The tourists objected to the guide that they couldn’t hear. She knows you like the back of her hand.
Visiting relatives can be boring. Changing schedules frequently confused passengers.
39
39
impractical design requirements plastic cup holder
39
impractical design requirements plastic cup holder
The chicken is ready to eat. The contractors are rich enough to sue.
39
impractical design requirements plastic cup holder
The chicken is ready to eat. The contractors are rich enough to sue.
Small rats and mice and squeeze into holes or cracks in the wall.
40
40
have an interpretation you can get your mind around.)
40
have an interpretation you can get your mind around.)
This analysis corresponds to the correct parse of: “This is panic buying!”
40
have an interpretation you can get your mind around.)
This analysis corresponds to the correct parse of: “This is panic buying!”
40
have an interpretation you can get your mind around.)
probabilistic techniques do this.
This analysis corresponds to the correct parse of: “This is panic buying!”
41
Put the block in the box on the table in the kitchen.
41
Put the block in the box on the table in the kitchen.
42
N a set of non-terminal symbols (or variables) Σ a set of terminal symbols (disjoint from N) R a set of rules or productions, each of the form A → β , where A is a non-terminal, β is a string of symbols from the infinite set of strings (Σ∪N)∗ S a designated start symbol and a member of N
42
N a set of non-terminal symbols (or variables) Σ a set of terminal symbols (disjoint from N) R a set of rules or productions, each of the form A → β , where A is a non-terminal, β is a string of symbols from the infinite set of strings (Σ∪N)∗ S a designated start symbol and a member of N
42
N a set of non-terminal symbols (or variables) Σ a set of terminal symbols (disjoint from N) R a set of rules or productions, each of the form A → β , where A is a non-terminal, β is a string of symbols from the infinite set of strings (Σ∪N)∗ S a designated start symbol and a member of N
42
N a set of non-terminal symbols (or variables) Σ a set of terminal symbols (disjoint from N) R a set of rules or productions, each of the form A → β , where A is a non-terminal, β is a string of symbols from the infinite set of strings (Σ∪N)∗ S a designated start symbol and a member of N
43
N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 S → NP VP 1.0 (NP a girl) (VP ate a sandwich) VP → V 0.2 VP → V NP 0.4 (V ate) (NP a sandwich) VP → VP PP 0.4 (VP saw a girl) (PP with a telescope) NP → NP PP 0.3 (NP a girl) (PP with a sandwich) NP → D N 0.5 (D a) (N sandwich) NP → PN 0.2 PP → P NP 1.0 (P with) (NP a sandwich)
43
N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 S → NP VP 1.0 (NP a girl) (VP ate a sandwich) VP → V 0.2 VP → V NP 0.4 (V ate) (NP a sandwich) VP → VP PP 0.4 (VP saw a girl) (PP with a telescope) NP → NP PP 0.3 (NP a girl) (PP with a sandwich) NP → D N 0.5 (D a) (N sandwich) NP → PN 0.2 PP → P NP 1.0 (P with) (NP a sandwich)
P(X → α)
<latexit sha1_base64="Ga0C9SNYktqgHtEKe+P0Rd8YeI=">ADmXicfVLbtNAEN3GXEq4NC2PfTFElQpCUVKQ6GO5PFRIiCBIGykbReP12Fl1L9buOjSy/CW8wkfxN6ydUNVNxUheH82e2TlziTLBrev3/2y1gjt3793ftB+Ojxk53O7t6Z1blhOGJaDOwKLgCkeO4HjzCDISOB5dPGhuj9foLFcq+9umeFUQqp4whk475p1doaH45A6HVIQ2RxezDrdfq9fW7gJBmvQJWsbznZbhsa5RKVYwKsnQz6mZsWYBxnAs2zS1mwC4gxYmHCiTaVErL8MD74nDRBv/KRfW3usRBUhrlzLyTAlubm/eVc7b7ia5S46nBVdZ7lCxVaIkF6GvtGpDGHODzImlB8AM91pDNgcDzPlmtQ+up5mjWKBrFsLktLBJnb0hKZJlM/hyVWibGlT4g2kpQcUvC5qA5GIZYwK5cGVBbfIP39avV/GCZ3bduqsnBTqDU+5AiEwcbQ6m7/mztan236Ef2ADH72qr9kaMBp45WASVcln5gKX1GK/g/JldXTA+bZRW1AF9M1RedoSrKGjKhLdIoNTrPGoI34muh/gFI/BhWfGyGrRh+Swc3d3ITnB31Bq97R1/fdE/er/d1m+yT5+SQDMhbckJOyZCMCM5+Ul+kd/BfvAuOA0+raitrXMU9Kw4NtfQAE3AQ=</latexit>43
N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 S → NP VP 1.0 (NP a girl) (VP ate a sandwich) VP → V 0.2 VP → V NP 0.4 (V ate) (NP a sandwich) VP → VP PP 0.4 (VP saw a girl) (PP with a telescope) NP → NP PP 0.3 (NP a girl) (PP with a sandwich) NP → D N 0.5 (D a) (N sandwich) NP → PN 0.2 PP → P NP 1.0 (P with) (NP a sandwich)
P(X → α)
<latexit sha1_base64="Ga0C9SNYktqgHtEKe+P0Rd8YeI=">ADmXicfVLbtNAEN3GXEq4NC2PfTFElQpCUVKQ6GO5PFRIiCBIGykbReP12Fl1L9buOjSy/CW8wkfxN6ydUNVNxUheH82e2TlziTLBrev3/2y1gjt3793ftB+Ojxk53O7t6Z1blhOGJaDOwKLgCkeO4HjzCDISOB5dPGhuj9foLFcq+9umeFUQqp4whk475p1doaH45A6HVIQ2Rxez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CET2gFJMqtz0yC8lV8TDQ/QNIxhFQ/NtFVE2NL+1Z3cBqdHh/2Xh0efX3VO3q73dRc9Qc/QPuqj1+gEfUADNEQM/UA/0S/0OzqOvkUQZavQ1s465zFqWGT+AjmAQY=</latexit>0 ≤ P(X → α) ≤ 1
<latexit sha1_base64="Fpl2uK2s9UVUIUwQuE2xnXW1p+4=">AD1HicfVJbixMxGM2XtZ62a4+hIthVWkzKyC4tOiPogVrHdQlNKJvPNGwuY5KpW8Y+ia/+Fn+N4JP+FNOZunS2i4HJHE6+k5zvEmWCWxcEv3YazUuXr1zdvda6fuPmrb32/u2h1blhMGBaDOKqAXBFQwcdwJGmQEqIwH0cnL1fnxHIzlWn10iwmkqaKJ5xR56lp+023fzDCxGlMqMhm9EGrSxJtqB4k8aEK/zheSvARMAn7DUbkoLp+1O0AvKhbdBuAYdtF796X7DkFizXIJyTFBrx2GQuUlBjeNMwLJFcgsZSc0hbGHikqwk6JMeom7nomx9+o/5XDJbioKq1dyMhHSupm9vzZirzobJy75Nmk4CrLHShWPZTkAvuEVxXEMTfAnFh4QJnh3itmM2oc7Ovnwbz8xAzMHVE2FyUtikfL1mKZLuvi0SrRFDCj4zLSUVMUPC5JQycUihoTmwi0LYpN/+KJ6PYrnPLPr0p1dKcARbXjKle80JI6stjrtfzNHyr1FXoFvkIG3vW7DAx12ngn1KSni59w1Jyj6zg/yK5Oov0sJ5WURrwyazqojNQxbKETGgLJEqNzrOa4S19adRfQBPfhioe6rIqwk9peH4mt8HwsBc+7h2+f9I5erGe10F91HByhET9EReo36aIAY+oF+ot/oT3PY/NL82vxWhTZ21po7qLa3/8CUZFLuA=</latexit>43
N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 S → NP VP 1.0 (NP a girl) (VP ate a sandwich) VP → V 0.2 VP → V NP 0.4 (V ate) (NP a sandwich) VP → VP PP 0.4 (VP saw a girl) (PP with a telescope) NP → NP PP 0.3 (NP a girl) (PP with a sandwich) NP → D N 0.5 (D a) (N sandwich) NP → PN 0.2 PP → P NP 1.0 (P with) (NP a sandwich)
P(X → α)
<latexit sha1_base64="Ga0C9SNYktqgHtEKe+P0Rd8YeI=">ADmXicfVLbtNAEN3GXEq4NC2PfTFElQpCUVKQ6GO5PFRIiCBIGykbReP12Fl1L9buOjSy/CW8wkfxN6ydUNVNxUheH82e2TlziTLBrev3/2y1gjt3793ftB+Ojxk53O7t6Z1blhOGJaDOwKLgCkeO4HjzCDISOB5dPGhuj9foLFcq+9umeFUQqp4whk475p1doaH45A6HVIQ2RxezDrdfq9fW7gJBmvQJWsbznZbhsa5RKVYwKsnQz6mZsWYBxnAs2zS1mwC4gxYmHCiTaVErL8MD74nDRBv/KRfW3usRBUhrlzLyTAlubm/eVc7b7ia5S46nBVdZ7lCxVaIkF6GvtGpDGHODzImlB8AM91pDNgcDzPlmtQ+up5mjWKBrFsLktLBJnb0hKZJlM/hyVWibGlT4g2kpQcUvC5qA5GIZYwK5cGVBbfIP39avV/GCZ3bduqsnBTqDU+5AiEwcbQ6m7/mztan236Ef2ADH72qr9kaMBp45WASVcln5gKX1GK/g/JldXTA+bZRW1AF9M1RedoSrKGjKhLdIoNTrPGoI34muh/gFI/BhWfGyGrRh+Swc3d3ITnB31Bq97R1/fdE/er/d1m+yT5+SQDMhbckJOyZCMCM5+Ul+kd/BfvAuOA0+raitrXMU9Kw4NtfQAE3AQ=</latexit>∀X → α ∈ R :
<latexit sha1_base64="Uut5BbxAe/gvdIr0Ktg9Ulcvms=">ADtnicfVLbhMxEHWzXMpyS+GRF0MUqaCqSgoSFU8V8MALIiDSRopD5HVmN1Z9k+0NjVb7E3wNr/AX/A3eTaiyTcVI6z0az3jOmZnECO58r/dnpxXduHnr9u6d+O69+w8etvcenTqdWwZDpoW2o4Q6EFzB0HMvYGQsUJkIOEvO31X3Zwuwjmv1S8NTCTNFE85oz64pu2D7mB/hInXmFBh5vR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12ngn1KSni59w1Jyj6zg/yK5Oov0sJ5WURrwyazqojNQxbKETGgLJEqNzrOa4S19adRfQBPfhioe6rIqwk9peH4mt8HwsBc+7h2+f9I5erGe10F91HByhET9EReo36aIAY+oF+ot/oT3PY/NL82vxWhTZ21po7qLa3/8CUZFLuA=</latexit>∀X ∈ N :
<latexit sha1_base64="49MoRPeQT+rHJt1OmDWQ1ZXC1o=">AD5nicfVLbhMxFHUTHmV4pbBkY4giFYSqmYIE6qoCFmyAgEgbKY4ij+fOjFU/BtsTGo3yC+wQW76Fv+AP2MIX4ExClWkqLI3n6Poe+9xzb1wIbl0Y/txqtS9dvnJ1+1pw/cbNW7c7O3eOrC4NgwHTQpthTC0IrmDguBMwLAxQGQs4jk9eLs6Pp2As1+qjmxUwljRTPOWMOh+adEivzvExGlMqChy+jDokVQbKgReD2PCFf5wEPRCTAR8wp60xlnGomCN6dPfHkw63XAvrBfeBNEKdNFq9Sc7LUMSzUoJyjFBrR1FYeHGFTWOMwHzgJQWCspOaAYjDxWVYMdVbcMc93wkwV6D/5TDdXSdUVFp7UzGPlNSl9vzZ4vgRWej0qXPxVXRelAseVDaSmwd2DhKU64AebEzAPKDPdaMcupocx572ha8/kIKbgmoUwOa5sWr/ekBTLeZN8uiw0IAYUfGZaSqSRxVJqeRilkBKS+HmFbHpP3yRX4+TKS/syrqzKwU4og3PuPIdhNSRxdYM+1/uSL0H5BX4Bhl41W/K8BQp41XQk0m6encNywj98kC/i+Tq7NMD5tlVbUAX8zCF12AquY1ZEJbIHFmdFk0BG/wa6H+Apr6NizoUlbZvgpjc7P5CY42t+Lnuztv3/aPXyxmtdtdA89QLsoQs/QIXqN+miAGPqBfqHf6E87b39pf21/W6a2tlacu6ix2t/AiehUeo=</latexit>X
α:X→α∈R
P(X → α) = 1
<latexit sha1_base64="t0fKPrJku4jtGJsFL4Ue2p0Q0w=">AEHicfVJbixMxFE47XtbxtquPgkSXYhUpM6ugFIRFfBFreJeYFNKJj3Ths1lTDLrlmH+hD/AX+Ob+Cr4T3w0nalLp10MTObj5PtyvnNOkxw6Lod6sdXLh46fLGlfDqtes3bm5u3dq3OjcM9pgW2hwm1ILgCvYcdwIOMwNUJgIOkuNX8/ODEzCWa/XJzTIYSjpRPOWMOh8abX7tDLqHmDiNCRXZlD4MOyTVhgqBl8OYcIU/9sNOhImAz9iLljR1LG5IPf9dPyQ2l6OipvXLyzxSnb8Asejze2oF1ULr4N4AbRYg1GW21DxprlEpRjglp7FEeZGxbUOM4ElCHJLWSUHdMJHmoqAQ7LKrmlbjI2PsjftPOVxFlxUFldbOZOKZkrqpXT2bB87O8pd+nxYcJXlDhSrE6W5wL7a+STwmBtgTsw8oMxw7xWzKTWUOT8v38ulNFMQJ+CahTA5LGxaZW9YSmTZFJ/WhYbEgIvTEtJ1fhRQVIquZiNIaW5cGVBbPoPn9evx+MTntlF686uFOCINnzClR87pI7Mt2bY/6aOVHtIXoMfkIG3vX7DAx12ngn1EwkPS39wCbkHpnD/zG5OmN62CyrqAz4YuZ90RmoqwgE9oCSZG51nD8Jq+MuovoKkfQ82Hpqxm+Fcar7JdbC/04uf9HY+PN3efbl4rxvoDrqPuihGz9AueoMGaA8x9Kd1t/Wg1Q2+Bd+DH8HPmtpuLTS3UWMFv/4C5yZig=</latexit>43
N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 S → NP VP 1.0 (NP a girl) (VP ate a sandwich) VP → V 0.2 VP → V NP 0.4 (V ate) (NP a sandwich) VP → VP PP 0.4 (VP saw a girl) (PP with a telescope) NP → NP PP 0.3 (NP a girl) (PP with a sandwich) NP → D N 0.5 (D a) (N sandwich) NP → PN 0.2 PP → P NP 1.0 (P with) (NP a sandwich) Now we can score a tree as a product
corresponding to the used rules!
P(X → α)
<latexit sha1_base64="Ga0C9SNYktqgHtEKe+P0Rd8YeI=">ADmXicfVLbtNAEN3GXEq4NC2PfTFElQpC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z9iLljR1LG5IPf9dPyQ2l6OipvXLyzxSnb8Asejze2oF1ULr4N4AbRYg1GW21DxprlEpRjglp7FEeZGxbUOM4ElCHJLWSUHdMJHmoqAQ7LKrmlbjI2PsjftPOVxFlxUFldbOZOKZkrqpXT2bB87O8pd+nxYcJXlDhSrE6W5wL7a+STwmBtgTsw8oMxw7xWzKTWUOT8v38ulNFMQJ+CahTA5LGxaZW9YSmTZFJ/WhYbEgIvTEtJ1fhRQVIquZiNIaW5cGVBbPoPn9evx+MTntlF686uFOCINnzClR87pI7Mt2bY/6aOVHtIXoMfkIG3vX7DAx12ngn1EwkPS39wCbkHpnD/zG5OmN62CyrqAz4YuZ90RmoqwgE9oCSZG51nD8Jq+MuovoKkfQ82Hpqxm+Fcar7JdbC/04uf9HY+PN3efbl4rxvoDrqPuihGz9AueoMGaA8x9Kd1t/Wg1Q2+Bd+DH8HPmtpuLTS3UWMFv/4C5yZig=</latexit>44
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7
44
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 P(T) = 1.0 * 0.2 * 1.0 * 0.4 * 0.5 * 0.3 * 0.5 * 0.3 * 0.2 * 1.0 * 0.6 * 0.5 * 0.3 * 0.7 = 2.26e-5
45
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 P(T) = 1.0 * 0.2 * 1.0 * 0.4 * 0.5 * 0.3 * 0.5 * 0.3 * 0.2 * 1.0 * 0.6 * 0.5 * 0.3 * 0.7 = 2.26e-5 1.0
46
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 P(T) = 1.0 * 0.2 * 1.0 * 0.4 * 0.5 * 0.3 * 0.5 * 0.3 * 0.2 * 1.0 * 0.6 * 0.5 * 0.3 * 0.7 = 2.26e-5 1.0 0.2
47
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 P(T) = 1.0 * 0.2 * 1.0 * 0.4 * 0.5 * 0.3 * 0.5 * 0.3 * 0.2 * 1.0 * 0.6 * 0.5 * 0.3 * 0.7 = 2.26e-5 1.0 0.2 1.0
48
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 P(T) = 1.0 * 0.2 * 1.0 * 0.4 * 0.5 * 0.3 * 0.5 * 0.3 * 0.2 * 1.0 * 0.6 * 0.5 * 0.3 * 0.7 = 2.26e-5 1.0 0.2 1.0 0.4
49
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 P(T) = 1.0 * 0.2 * 1.0 * 0.4 * 0.5 * 0.3 * 0.5 * 0.3 * 0.2 * 1.0 * 0.6 * 0.5 * 0.3 * 0.7 = 2.26e-5 1.0 0.2 1.0 0.4 0.5
50
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 P(T) = 1.0 * 0.2 * 1.0 * 0.4 * 0.5 * 0.3 * 0.5 * 0.3 * 0.2 * 1.0 * 0.6 * 0.5 * 0.3 * 0.7 = 2.26e-5 1.0 0.2 1.0 0.4 0.5 0.3
51
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 P(T) = 1.0 * 0.2 * 1.0 * 0.4 * 0.5 * 0.3 * 0.5 * 0.3 * 0.2 * 1.0 * 0.6 * 0.5 * 0.3 * 0.7 = 2.26e-5 1.0 0.2 1.0 0.4 0.5 0.3 1.0 0.5 0.7 0.3 0.6 0.2 0.3 0.5
52
S → NP VP 1.0 VP → V 0.2 VP → V NP 0.4 VP → VP PP 0.4 NP → NP PP 0.3 NP → D N 0.5 NP → PN 0.2 PP → P NP 1.0 N → girl 0.2 N → telescope 0.7 N → sandwich 0.1 PN → I 1.0 V → saw 0.5 V → ate 0.5 P → with 0.6 P → in 0.4 D → a 0.3 D → the 0.7 P(T) = 1.0 * 0.2 * 1.0 * 0.4 * 0.5 * 0.3 * 0.5 * 0.3 * 0.2 * 1.0 * 0.6 * 0.5 * 0.3 * 0.7 = 2.26e-5 1.0 0.2 1.0 0.4 0.5 0.3 1.0 0.5 0.7 0.3 0.6 0.2 0.3 0.5
53
53
…
53
P(X → α) = C(X → α) C(X)
<latexit sha1_base64="4eVtiSWvoIouNRYJWQy/6AoClfM=">AES3icfVLbtNAFHWaFkp4pbBkMxBFtAhFSUECVUKqKAs2hYBIW6kTRePJdTLqPMzMODSy/HF8AB/Ad7BDLi2QxUnFSPZPr5zn2HsRTOd7s/axv1za0bN7dvNW7fuXvfnPnwYkzieUw4EYaexYyB1JoGHjhJZzFpgKJZyGF0f5/ekMrBNGf/HzGIaKTbSIBGceTaPm93Z/94xQbwhlMp6yvUabRsYyKcmymVChyeDRrtLqISvBEVLmtLWq0iR/wH51CVqlJa8g3WPGVkJT96gn3UbjSzj6VElapb/72WjZqvb6RaHrIPeArSCxemPdjYsHRueKNCeS+bcea8b+2HKrBdcQtagiYOY8Qs2gXOEmilw7TodUbaBkTrBMf7UlhXVakTDk3VyEyFfNTt3qXG6+7O0989HqYCh0nHjQvA0WJFhwPjgyFha4l3MEjFuBuRI+ZdgWj+PFRi+FmYKcga8WwtUwdVERvZJSqLKq+LIstEtaPjGjVJMj5+lNGJKyPkYIpZIn6XURf/wdf16Pp6J2C1ad+VSgqfGionQuCUQeZq/qmb8TD0t3g36DnBAFo4x648xWOaNxUyYnSh2meHAJvQxzeH/mEJfMRFWy0qLBLCYvC8mBp1mBeTSOKDhxJokriS8pi8SRQcswjGUfKjKSgZuaW91J9fByX6n96Kz/+l6/DtYl+3g0fBk2A36AWvgsPgfdAPBgGvPa0d105qp/Uf9V/13/U/JXWjtA8DCpnc+svC6xYQ=</latexit>…
53
P(X → α) = C(X → α) C(X)
<latexit sha1_base64="4eVtiSWvoIouNRYJWQy/6AoClfM=">AES3icfVLbtNAFHWaFkp4pbBkMxBFtAhFSUECVUKqKAs2hYBIW6kTRePJdTLqPMzMODSy/HF8AB/Ad7BDLi2QxUnFSPZPr5zn2HsRTOd7s/axv1za0bN7dvNW7fuXvfnPnwYkzieUw4EYaexYyB1JoGHjhJZzFpgKJZyGF0f5/ekMrBNGf/HzGIaKTbSIBGceTaPm93Z/94xQbwhlMp6yvUabRsYyKcmymVChyeDRrtLqISvBEVLmtLWq0iR/wH51CVqlJa8g3WPGVkJT96gn3UbjSzj6VElapb/72WjZqvb6RaHrIPeArSCxemPdjYsHRueKNCeS+bcea8b+2HKrBdcQtagiYOY8Qs2gXOEmilw7TodUbaBkTrBMf7UlhXVakTDk3VyEyFfNTt3qXG6+7O0989HqYCh0nHjQvA0WJFhwPjgyFha4l3MEjFuBuRI+ZdgWj+PFRi+FmYKcga8WwtUwdVERvZJSqLKq+LIstEtaPjGjVJMj5+lNGJKyPkYIpZIn6XURf/wdf16Pp6J2C1ad+VSgqfGionQuCUQeZq/qmb8TD0t3g36DnBAFo4x648xWOaNxUyYnSh2meHAJvQxzeH/mEJfMRFWy0qLBLCYvC8mBp1mBeTSOKDhxJokriS8pi8SRQcswjGUfKjKSgZuaW91J9fByX6n96Kz/+l6/DtYl+3g0fBk2A36AWvgsPgfdAPBgGvPa0d105qp/Uf9V/13/U/JXWjtA8DCpnc+svC6xYQ=</latexit>…
# times the rule was used in the corpus
53
P(X → α) = C(X → α) C(X)
<latexit sha1_base64="4eVtiSWvoIouNRYJWQy/6AoClfM=">AES3icfVLbtNAFHWaFkp4pbBkMxBFtAhFSUECVUKqKAs2hYBIW6kTRePJdTLqPMzMODSy/HF8AB/Ad7BDLi2QxUnFSPZPr5zn2HsRTOd7s/axv1za0bN7dvNW7fuXvfnPnwYkzieUw4EYaexYyB1JoGHjhJZzFpgKJZyGF0f5/ekMrBNGf/HzGIaKTbSIBGceTaPm93Z/94xQbwhlMp6yvUabRsYyKcmymVChyeDRrtLqISvBEVLmtLWq0iR/wH51CVqlJa8g3WPGVkJT96gn3UbjSzj6VElapb/72WjZqvb6RaHrIPeArSCxemPdjYsHRueKNCeS+bcea8b+2HKrBdcQtagiYOY8Qs2gXOEmilw7TodUbaBkTrBMf7UlhXVakTDk3VyEyFfNTt3qXG6+7O0989HqYCh0nHjQvA0WJFhwPjgyFha4l3MEjFuBuRI+ZdgWj+PFRi+FmYKcga8WwtUwdVERvZJSqLKq+LIstEtaPjGjVJMj5+lNGJKyPkYIpZIn6XURf/wdf16Pp6J2C1ad+VSgqfGionQuCUQeZq/qmb8TD0t3g36DnBAFo4x648xWOaNxUyYnSh2meHAJvQxzeH/mEJfMRFWy0qLBLCYvC8mBp1mBeTSOKDhxJokriS8pi8SRQcswjGUfKjKSgZuaW91J9fByX6n96Kz/+l6/DtYl+3g0fBk2A36AWvgsPgfdAPBgGvPa0d105qp/Uf9V/13/U/JXWjtA8DCpnc+svC6xYQ=</latexit>…
# times the rule was used in the corpus # times nonterminal X appeared in the treebank
53
P(X → α) = C(X → α) C(X)
<latexit sha1_base64="4eVtiSWvoIouNRYJWQy/6AoClfM=">AES3icfVLbtNAFHWaFkp4pbBkMxBFtAhFSUECVUKqKAs2hYBIW6kTRePJdTLqPMzMODSy/HF8AB/Ad7BDLi2QxUnFSPZPr5zn2HsRTOd7s/axv1za0bN7dvNW7fuXvfnPnwYkzieUw4EYaexYyB1JoGHjhJZzFpgKJZyGF0f5/ekMrBNGf/HzGIaKTbSIBGceTaPm93Z/94xQbwhlMp6yvUabRsYyKcmymVChyeDRrtLqISvBEVLmtLWq0iR/wH51CVqlJa8g3WPGVkJT96gn3UbjSzj6VElapb/72WjZqvb6RaHrIPeArSCxemPdjYsHRueKNCeS+bcea8b+2HKrBdcQtagiYOY8Qs2gXOEmilw7TodUbaBkTrBMf7UlhXVakTDk3VyEyFfNTt3qXG6+7O0989HqYCh0nHjQvA0WJFhwPjgyFha4l3MEjFuBuRI+ZdgWj+PFRi+FmYKcga8WwtUwdVERvZJSqLKq+LIstEtaPjGjVJMj5+lNGJKyPkYIpZIn6XURf/wdf16Pp6J2C1ad+VSgqfGionQuCUQeZq/qmb8TD0t3g36DnBAFo4x648xWOaNxUyYnSh2meHAJvQxzeH/mEJfMRFWy0qLBLCYvC8mBp1mBeTSOKDhxJokriS8pi8SRQcswjGUfKjKSgZuaW91J9fByX6n96Kz/+l6/DtYl+3g0fBk2A36AWvgsPgfdAPBgGvPa0d105qp/Uf9V/13/U/JXWjtA8DCpnc+svC6xYQ=</latexit>…
# times the rule was used in the corpus # times nonterminal X appeared in the treebank
54
54
54
sum over probabilities of all trees in the grammar may be less than 1.
54
sum over probabilities of all trees in the grammar may be less than 1.
and Geman, 1998].
54
55