11 Feb 2004*
CS 3243 - Optional Lecture - NLP
31
Language Generation
lThe same DCG can be used for parsing and generation
lParsing:
lGiven: S(sem, [John, loves, Mary])
lReturn: sem = Loves(John, Mary)
lGeneration:
lGiven: S(Loves(John, Mary), words)
lReturn: words = [John, loves, Mary]