Ling342 6
Ling342 6
Linguistics
Eleni Miltsakaki
AUTH
Fall 2005-Lecture 6
1
What’s the plan for today?
• Peer-to-peer tutorial on
– Computational linguistics
– Grammars and parsing
– TAG
– LFG
– HPSG
• Questions about homework
• On-line processing of syntactic ambiguity in
adults and children
2
Slides to guide you review tutorial
3
What is computational linguistics?
5
Grammars and parsing
• What is syntactic parsing
– Determining the syntactic structure of a sentence
• Basic steps
– Identify sentence boundaries
– Identify what part of speech is each word
– Identify syntactic relations
• Tree representation
6
How to construct a tree
• To construct a tree of an English sentence you need to know which structure are legal in
English
• Rewrite rules
– Describe what tree structures are allowed in the language
NP==> N
NP==> Det NP
VP==> V
VP ==> V NP
S ==> NP VP
S
==> NP VP
==> N VP
==> John VP
==> John V NP
==> John ate NP
==> John ate Det N
==> John ate the N
==> John ate the pizza 7
Chomsky’s Hierarchy
• Containment hierarchy of classes of formal grammars that generate formal
languages
• Type 2: context free (the theoretical basis for the syntax of most
programming languages)
– A a, A Ba
8
Tree adjoining grammar
• Introduced by Joshi, Levy & Takahashi (1975) and Joshi (1985)
• Linguistically motivated
– Tree generating grammar (generates tree structures not just strings)
• Example: I want him to leave, I promised him to leave
– Allows factoring recursion from the statement of linguistic constraints
(dependencies), thus simplifying linguistic description (Kroch & Joshi
1985)
• Formally motivated
– A (new) class of grammars that describe mildly context sensitive
languages (Joshi et al 1991)
9
TAG formalism
10
11
Adjunction
12
Adjunction
13
Derived and derivation trees
14
Lexical Functional Grammar
• First introduced by Kaplan & Bresnan (1982)
• Two parallel levels of syntactic representation
15
LFG example
16
Head-driven Phrase Structure
Grammar
• aka HPSG
• HPSG home: http://hpsg.stanford.edu/
17
18
Feature structure in HPSG
20
Feature types
• Features are
organized in
hierarchies
21
Valence and grammar rules
• Complements are specified as
complex categories in the
lexical representation
22
Representation of valence in
feature descriptions
A lexical entry consists of:
23
Head feature principle
• In a headed structure,
the head features of
the mother are
identical to the head
features of the head
daughter
24
Linguistic generalizations in the
type hierarchy
• Types are arranged in a hierarchy
• The most general type is at the top
• Information about properties of an object of a certain
type are specified in the definition of the type
• Subtypes inherit these properties
• Like an encyclopedic entry
• The upper part of the hierarchy is relevant to all
languages (universal grammar)
• More specific types maybe specific for classes of
languages or just one language
25
A simple example
26
END OF REVIEW SLIDES
27
Today’s question
28
Trueswell et al 1999
29
The garden-path theory
30
Referential principle
31
Experiment 1
• Methodology: eye-tracking
• Participants: 16 5-year-old children
• Material:
– Put the frog on the napkin in the box
(ambiguous between DESTINATION and
MODIFIER)
– Put the frog that’s on the napkin in the box
(unambiguous)
32
Head mounted eye tracker
33
1 and 2 referent context
34
Unambiguous
35
Analysis
36
37
Results
• Participants: 12 adults
• Same material
• Same methodology
39
40
Results
41
42
Conclusions
• Minimal attachment?
• Lexical frequency?
44