Question: This problem set concerns the following grammar ( S is the start symbol ) : NOTE: when a phrasal category ( XP or XB )
This problem set concerns the following grammar S is the start symbol:
NOTE: when a phrasal category XP or XB has more than one rule for rewriting it consider the rules in the order that they are listed.
For VB first try VB rightarrow mathrmV D P then mathrmVBrightarrow mathrmVCP
For NP first try NP rightarrow mathrmN then NP rightarrow mathrmN P mathrmP
Be sure to indicate at the end whether parsing succeeded or failed!
If you reach a successful parse, you do not need to keep looking for other possible parses.
Problem points
Apply the top down parsing algorithm to the sentence "the hunter saw a rabbit fool a duck in the woods". Show the stepbystep operation using the table format shown in the lectures and handout.
Problem points
Show the parse tree or partial tree corresponding to the state of parsing when the algorithm has finished. If parsing succeeded, this will be the grammatical tree for the successful parse. If parsing failed, it will be the partial nongrammatical tree representing what the algorithm had built what it was working on at the last time it tried to backtrack. Please generate a tree diagram using jsSyntaxTree or some similar tool and include the image in your work.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
