Question: PROBLEM 1 : Parsing with Cocke - Kasami - Younger ( CKY ) algorithm ( 5 0 points ) Grammar: ` ` ` S }

PROBLEM 1: Parsing with Cocke-Kasami-Younger (CKY) algorithm (50 points)
Grammar:
```
S }->\mathrm{ NP VP
VP -> V NP | VP PP|V
PP ->PNP
NP -> Det N|N|NP PP
Det -> 'the' |'a'
N -> 'dog' | 'cat' | 'garden' | 'boy' | 'telescope'
V -> 'saw' |'chased'| 'ran'
P ->'in'| 'with'
```
Sentences:
1. The boy saw the dog with the telescope
2. The cat ran in the garden
3. The dog chased the boy in the garden
4. A boy with a telescope saw the cat
Use the CKY algorithm to parse the four sentences using the grammar provided and show all the possible parses for the sentences in the simple bracketed structure.
PROBLEM 1 : Parsing with Cocke - Kasami - Younger

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!