swallow. NP. Wanda. V. has. V. been. V. thrilling. NP. Otto - PowerPoint PPT Presentation

About This Presentation
Title:

swallow. NP. Wanda. V. has. V. been. V. thrilling. NP. Otto

Description:

swallow. NP. Wanda. V. has. V. been. V. thrilling. NP. Otto. NP. VP. VP. VP. S. N. Det. The. N. plan. to ... swallow. NP. Wanda. V. has. V. been. V. thrilling ... – PowerPoint PPT presentation

Number of Views:74
Avg rating:3.0/5.0
Slides: 47
Provided by: jasone2
Learn more at: https://www.cs.jhu.edu
Category:

less

Transcript and Presenter's Notes

Title: swallow. NP. Wanda. V. has. V. been. V. thrilling. NP. Otto


1
Syntactic Features
  • Morphology, heads, gaps, etc.

2
3 views of a context-free rule
  • generation (production) S ? NP VP
  • parsing (comprehension) S ? NP VP
  • verification (checking) S NP VP
  • Today you should keep the third, declarative
    perspective in mind.
  • Each phrase has
  • an interface (S) saying where it can go
  • an implementation (NP VP) saying whats in it
  • To let the parts of the tree coordinate more
    closely with one another, enrich the interfaces
    Sfeatures NPfeatures VPfeatures

3
Examples
  • Verb ? thrills
  • VP? Verb NP
  • S ? NP VP

A roller coaster thrills every teenager
4
3 common ways to use features
  • morphology of a single word
  • Verbheadthrill, tensepresent, numsing,
    person3, ? thrills
  • projection of features up to a bigger phrase
  • VPhead?, tense?, num? ? Vhead?, tense?,
    num? NP
  • provided ? is in the set TRANSITIVE-VERBS
  • agreement between sister phrases
  • Shead?, tense? ? NPnum?, VPhead?,
    tense?, num?

5
3 Common Ways to Use Features
Verbheadthrill, tensepresent, numsing,
person3, ? thrills VPhead?, tense?, num?
? Vhead?, tense?, num? NP Shead?,
tense? ? NPnum?, VPhead?, tense?,
num?
S
(generationperspective)
VP
NP
NP
Verb
A roller coaster thrills every teenager
6
3 Common Ways to Use Features
Verbheadthrill, tensepresent, numsing,
person3, ? thrills VPhead?, tense?, num?
? Vhead?, tense?, num? NP Shead?,
tense? ? NPnum?, VPhead?, tense?,
num?
S
(comprehensionperspective)
VP
NP
NP
Verb
A roller coaster thrills every teenager
7
S
NP
Det The
V has
N
N plan
V been
to
V thrilling
NP Otto
V swallow
NP Wanda
8
(No Transcript)
9
(No Transcript)
10
NPh? ? Det Nh? Nh? ? Nh? VP Nhplan
? plan
11
headplan
headplan
headplan
headOtto
headthrill
NPh? ? Det Nh? Nh? ? Nh? VP Nhplan
? plan
12
  • Why use heads?
  • Morphology (e.g.,word endings)
  • Nhplan,n1 ? planNhplan,n2 ? plans
  • Nhthrill,tenseprog ? thrillingNhthrill,tens
    epast ? thrilledNhgo,tensepast ? went

headplan
headplan
headplan
headOtto
headthrill
NPh? ? Det Nh? Nh? ? Nh? VP Nhplan
? plan
13
  • Why use heads?
  • Subcategorization (i.e., transitive vs.
    intransitive)
  • When is VP ? V NP ok?VPh? ? Vh? NP
    restrict to ? ? TRANSITIVE_VERBS
  • When is N ? N VP ok?Nh? ? Nh? VP
    restrict to ? ? plan, plot, hope,

headplan
headplan
headplan
headOtto
headthrill
NPh? ? Det Nh? Nh? ? Nh? VP Nhplan
? plan
14
  • Why use heads?
  • Selectional restrictions
  • VPh? ? Vh? NP
  • I.e., VPh? ? Vh? NPh?
  • Dont fill template in all ways VPhthrill
    ? Vhthrill NPhOtto VPhthrill ?
    Vhthrill NPhplan

headplan
headplan
headplan
headOtto
headthrill
NPh? ? Det Nh? Nh? ? Nh? VP Nhplan
? plan
15
Post-Processing
  • You dont have to handle everything with
    features. Instead, you could compose your
    grammar with a post-processor
  • Use your CFG randsent to generate some
    convenient internal version of the sentence.
  • Run that sentence through a postprocessor to
    clean it up for external presentation.

16
Post-Processing
  • External form after post-processing
  • The Buddha jumped.
  • Moses jumped.
  • We met Smith, 59, the chief.
  • Internal form (brackets show tree structure)
  • CAPS the CAPS buddha jumped .
  • CAPS CAPS moses jumped .
  • CAPS we met CAPS smith , 59 , , the chief
    , .
  • Well see a good family of postprocessors later
    finite-state transducers.

17
Post-Processing
  • Features and postprocessing dont do anything
    that you cant already do with nonterminals.
  • Provable for certain kinds of features and
    postprocessors. Can construct a new CFG
  • So they dont increase the power of CFGs.
  • But they can make your grammars simpler and
    cleaner (and easier to learn automatically?).
  • Just like programming in Java instead of machine
    code cant make your computer fly but makes your
    programs simpler and cleaner and easier to write.

18
Part of the English Tense System
19
Tenses by Post-Processing Affix-hopping
(Chomsky)
  • where
  • -s denotes 3rd person singular present tense
    on following verb (by an s suffix)
  • -en denotes past participle (often uses en or
    ed suffix)
  • -ing denotes present participle
  • Etc.

20
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
V has
VP
tenseperf,headthrill
V been
tenseprog, headthrill
  • Lets distinguish the different kinds of VP by
    tense

headOtto
tenseprog,headthrill
21
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
  • Present tense

22
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
  • Present tense

23
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
  • Present tense (again)

24
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
  • Present perfect tense

25
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
V has
VP
tenseperf,headthrill
tensepres,headhave
  • Present perfect tense

26
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
V has
VP
tenseperf,headthrill
tensepres,headhave
  • Present perfect tense

not ate why?
  • The yellow material makes it a perfect tense
    what effects?

27
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
V has
VP
tenseperf,headthrill
tensepres,headhave
  • Present perfect tense

28
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
  • Present tense (again)

29
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
  • Present progressive tense

30
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
V is
VP
tenseprog,headthrill
tensepres,headbe
  • Present progressive tense

31
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
  • Present perfect tense (again)

32
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
V has
VP
tenseperf,headthrill
tensepres,headhave
V been
tenseprog, headthrill
tenseperf,headbe
  • Present perfect progressive tense

headOtto
tenseprog,headthrill
33
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
V has
VP
tenseperf,headthrill
tensepres,headhave
V been
tenseprog, headthrill
tenseperf,headbe
  • Present perfect progressive tense

headOtto
tenseprog,headthrill
34
S
tensepres,headthrill
NP
VP
headplan
tensepres,headthrill
The plan
V has
VP
tenseperf,headthrill
tensepres,headhave
V been
tenseprog, headthrill
tenseperf,headbe
  • Present perfect progressive tense

headOtto
tenseprog,headthrill
35
S
cond
tensepres,headthrill
NP
VP
cond
headplan
tensepres,headthrill
The plan
V has
VP
tenseperf,headthrill
tensepres,headhave
Conditional
  • Present perfect progressive tense

V been
tenseprog, headthrill
tenseperf,headbe
headOtto
tenseprog,headthrill
36
  • So what pattern do all progressives follow?

37
  • So what pattern do all progressives follow?

VP
tenseperf,headthrill
V been
tenseprog, headthrill
tenseperf,headbe
headOtto
tenseprog,headthrill
38
Progressive VPtense?, head?, ? Vtense?,
stembe VPtenseprog, head?
Perfect VPtense?, head?, ? Vtense?,
stemhave VPtenseperf, head? Future
or VPtense?, head?, ? Vtense?, stemwill
conditional VPtensestem, head?
Infinitive VPtenseinf, head?, ? to
VPtensestem, head? Etc. As well as
the ordinary rules VPtense?, head?,
? Vtense?, head?, NP Vtensepast,
headhave ? had
VP
tenseperf,headthrill
V been
tenseprog, headthrill
tenseperf,headbe
headOtto
tenseprog,headthrill
39
Gaps (deep grammar!)
  • Pretend kiss is a pure transitive verb.
  • Is the president kissed grammatical?
  • If so, what type of phrase is it?
  • the sandwich that
  • I wonder what
  • What else has

the president kissed
Sally said the president kissed e Sally consumed
the pickle with e Sally consumed e with the pickle
40
Gaps
  • Object gaps
  • the sandwich that
  • I wonder what
  • What else has

the president kissed e
Sally said the president kissed e Sally consumed
the pickle with e Sally consumed e with the pickle
how could you tell the difference?
  • Subject gaps
  • the sandwich that
  • I wonder what
  • What else has

e kissed the president
Sally said e kissed the president
41
Gaps
  • All gaps are really the same a missing NP
  • the sandwich that
  • I wonder what
  • What else has

the president kissed e
Sally said the president kissed e Sally consumed
the pickle with e Sally consumed e with the pickle
Phrases with missing NP XmissingNP or just
X/NP for short
42
VP
CP
V wonder
whyes
NP what
S/NP
whyes
e
43
VP
NP
NP the sandwich
CP
whno
CP
V wonder
whyes
Comp that
NP what
S/NP
whyes
NP he
NP he
VP/NP
V was
V kissing
NP
V kissing
NP/NP
e
44
VP
VP
V believe
CP
whno
CP
V wonder
whyes
Comp that
NP what
S/NP
whyes
NP he
NP he
VP/NP
V was
V kissing
NP the sandwich
V kissing
NP/NP
e
45
NP
To indicate what fills a gap, people sometimes
coindex the gap and its filler.
NP the sandwich
/NP
CP
whno
Comp that
/NP
  • Each phrase has a unique index such as i.
  • In some theories, coindexation is used to help
    extract a meaning from the tree.
  • In other theories, it is just an aid to help you
    follow the example.

/NP
NP he
/NP
V was
V kissing
NP
/ NP
e
the moneyi I spend ei on the happinessj I hope to
buy ej which violini is this sonataj easy to play
ej on ei
46
  • Lots of features(tense, number, person, gaps,
    vowels, commas, wh, etc., etc....)

Help!
  • Sorry, thats just how language is
  • You know too much to write it down easily!
Write a Comment
User Comments (0)
About PowerShow.com