iit-cs585 / assignments

Assignments for IIT CS585
3 stars 7 forks source link

Clarification on is_valid_productions #4

Closed mychandru024 closed 7 years ago

mychandru024 commented 7 years ago

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!

aronwc commented 7 years ago

No, it should only be direct productions.

mychandru024 commented 7 years ago

Thank You Professor.