40 likes | 204 Vues
ICS 482 Natural Language Processing SLR Parsing. Muhammed Al-Mulhem March 1, 2009. CFG. Consider the following Context Free Grammar (CFG). 0) S’ S 1) S LS 2) S e 3) L a 4) L c 5) L g 6) L u 7) L aSu 8) L uSa 9) L cSg 10) L gSc
E N D
ICS 482Natural Language ProcessingSLR Parsing Muhammed Al-Mulhem March 1, 2009 Dr. Muhammed Al-Mulhem
CFG • Consider the following Context Free Grammar (CFG). 0) S’ S 1) S LS 2) S e 3) L a 4) L c 5) L g 6) L u 7) L aSu 8) L uSa 9) L cSg 10) L gSc 11) L gSu 12) L uSg Dr. Muhammed Al-Mulhem
String • One possible parse tree for the string gugagccaug • is the following: Dr. Muhammed Al-Mulhem
Parse Tree Dr. Muhammed Al-Mulhem