Question: show the parse trees for the following sentences. 3. Based on the wumpus world lexicon and grammar given on slides 22 and 23 of the
show the parse trees for the following sentences.



3. Based on the wumpus world lexicon and grammar given on slides 22 and 23 of the Natural Language lecture, show the parse trees for the following sentences. Note that it is possible for a sentence to have more than one parse tree (in which case show them all), or no parse tree. If the sentence cannot be parsed, then show a general, grammatically-correct grammar rule using only non-terminal symbols such that when the rule is added to the grammar it can parse the sentence (and show the parse tree). a. b. c. d. "the wumpus is smelly" "the wumpus is in 3 3" "the agent smells the wumpus in 3 2" "shoot the wumpus" 3. Based on the wumpus world lexicon and grammar given on slides 22 and 23 of the Natural Language lecture, show the parse trees for the following sentences. Note that it is possible for a sentence to have more than one parse tree (in which case show them all), or no parse tree. If the sentence cannot be parsed, then show a general, grammatically-correct grammar rule using only non-terminal symbols such that when the rule is added to the grammar it can parse the sentence (and show the parse tree). a. b. c. d. "the wumpus is smelly" "the wumpus is in 3 3" "the agent smells the wumpus in 3 2" "shoot the wumpus
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
