11 Feb 2004*
CS 3243 - Optional Lecture - NLP
31
Language Generation
l
The same DCG can be used for parsing and
generation
l
Parsing:
l
Given: S(sem, [John, loves, Mary])
l
Return: sem = Loves(John, Mary)
l
Generation:
l
Given: S(Loves(John, Mary), words)
l
Return: words = [John, loves, Mary]