Presentation is loading. Please wait.

Presentation is loading. Please wait.

DERIVATION S RULES USEDPROBABILITY P(s) = Σ j P(T,S) where t is a parse of s = Σ j P(T) P(T) – The probability of a tree T is the product.

Similar presentations


Presentation on theme: "DERIVATION S RULES USEDPROBABILITY P(s) = Σ j P(T,S) where t is a parse of s = Σ j P(T) P(T) – The probability of a tree T is the product."— Presentation transcript:

1

2 DERIVATION S RULES USEDPROBABILITY

3

4

5

6

7

8

9 P(s) = Σ j P(T,S) where t is a parse of s = Σ j P(T) P(T) – The probability of a tree T is the product of the probabilities of the rules used to generate it. P(s) – The probability of the string s is the sum of the probabilities of the trees which have that string as their yield

10

11

12

13

14 Tree and String Probabilities s = people fish tanks with rods P(t 1 ) = 1.0 × 0.7 × 0.4 × 0.5 × 0.6 × 0.7 × 1.0 × 0.2 × 1.0 × 0.7 × 0.1 = 0.0008232 P(t 2 ) = 1.0 × 0.7 × 0.6 × 0.5 × 0.6 × 0.2 × 0.7 × 1.0 × 0.2 × 1.0 × 0.7 × 0.1 = 0.00024696 P(s) = P(t 1 ) + P(t 2 ) = 0.0008232 + 0.00024696 = 0.00107016

15 Overview An introduction to the parsing problem Context free grammars A brief(!) sketch of the syntax of English Examples of ambiguous structures PCFGs, their formal properties, and useful algorithms Weaknesses of PCFGs

16 Lack of sensitivity to lexical information Lack of sensitivity to structural frequencies

17 Another Case of PP Attachment Ambiguity a)S NP NNS workersworkers VP VBD dumped NP NNSinto sacks PP IN NP DT abin NN

18 b)S NP NNS workersworkers VP VBD dumped NP NNS sacks PP IN into NP DTNN abin

19

20 A Case of Coordination Ambiguity a)NP NNS dogs PP IN inNNS NP houses CC and NP NNS cats

21 b)NP NNS dogs PP IN in NP NNSandNNS houses CC NP cats

22

23

24

25

26

27

28

29


Download ppt "DERIVATION S RULES USEDPROBABILITY P(s) = Σ j P(T,S) where t is a parse of s = Σ j P(T) P(T) – The probability of a tree T is the product."

Similar presentations


Ads by Google