Example Grammar - PowerPoint PPT Presentation

About This Presentation
Title:

Example Grammar

Description:

w laughed c Vi w jumped c Vi w cried c Vi w ran c Vi w saw c Vt w admired ... are there any structures which are not meaningful? ... – PowerPoint PPT presentation

Number of Views:16
Avg rating:3.0/5.0
Slides: 3
Provided by: Bate9
Category:

less

Transcript and Presenter's Notes

Title: Example Grammar


1
Example Grammar
Parameter start symbol is S Rule Satz S -gt NP
VP. Rule NP-Name NP -gt Name. Rule NP NP
-gt Det N. Rule NP with mod NP -gt Det N
PP. Rule VP intransitiv VP -gt Vi. Rule VP
transitiv VP -gt Vt NP. Rule VP intransitiv
mit PP VP -gt Vi PP. Rule VP transitiv mit
PP VP -gt Vt NP PP. Rule VP ditransitiv VP
-gt Vt2 NP NP. Rule VP mit PP-Objekt VP -gt Vpo
PP. Rule einfache PP PP -gt P NP.
\w Mary \c Name \w John \c Name \w Susan \c
Name \w Tom \c Name \w boy \c N \w girl \c
N \w student \c N \w book \c N \w table \c
N \w present \c N \w professor \c N
\w village \c N \w park \c N \w laughed \c
Vi \w jumped \c Vi \w cried \c Vi \w ran \c
Vi \w saw \c Vt \w admired \c Vt \w slapped \c
Vt \w avoided \c Vt \w put \c Vtp
\w gave \c Vt2 \w lived \c Vp \w the \c Det \w
a \c Det \w in \c P \w on \c P
grammar
lexicon
f03b.grm f02.lex
2
Exercises
  • For each sentence, answer the questions
  • how many parses does the grammar provide?
  • what are their structures?
  • Then consider whether this is reasonable in
    particular
  • are there any structures which are not
    meaningful?
  • are there any structures that would have been
    expected but which are not produced?
  1. the girl saw the boy
  2. the girl saw the boy in the village
  3. the girl in the park saw the boy in the village
  4. the girl in the park gave the boy in the village
    a present
  5. the girl in the park gave the boy a present in
    the park
  6. Susan in the park gave the boy a present in the
    park
  7. the boy in the park gave Susan a present in the
    park
Write a Comment
User Comments (0)
About PowerShow.com