Define an ATN parser for the dog's world grammar with adjectives (Exercise 7) and prepositional phrases (Exercise
Question:
Define an ATN parser for the dog's world grammar with adjectives (Exercise 7) and prepositional phrases (Exercise 8).
Data from exercise 7
Extend the dogs world grammar to include adjectives in noun phrases. Be sure to allow an indeterminate number of adjectives. Use a recursive rule, adjective_list, that either is empty or contains an adjective followed by an adjective list. Map this grammar into transition networks.
Data from Exercise 8
Add the following context-free grammar rules to the dog's world grammar of Section 15.2.1. Map the resulting grammar into transition networks. sentence ↔ noun_phrase verb_phrase prepositional_phrase
prepositional_phrase ↔ preposition noun_phrase preposition ↔ with preposition ↔ to preposition ↔ on
Step by Step Answer:
Artificial Intelligence Structures And Strategies For Complex Problem Solving
ISBN: 9780321545893
6th Edition
Authors: George Luger