Respected Professor,
Should we also support to say that ('NP', ['Mary']) is a valid production wrt to rules as below?
rules = [('S', ['NP', 'VP']),
('NP', ['ProperNoun']),
('ProperNoun', ['John', 'Mary']),
('VP', ['V', 'ProperNoun']),
('V', ['likes', 'hates'])]
Respected Professor, Should we also support to say that ('NP', ['Mary']) is a valid production wrt to rules as below? rules = [('S', ['NP', 'VP']), ('NP', ['ProperNoun']), ('ProperNoun', ['John', 'Mary']), ('VP', ['V', 'ProperNoun']), ('V', ['likes', 'hates'])]
Thank you!