SLIDE 1 General Linguistics HPSG – Head-Driven Phrase Structure Grammar
Alexandr Rosen
Ústav teoretické a komputaˇ cní lingvistiky Filozofická fakulta Univerzity Karlovy
27 March 2013
Rosen (FF UK) LTGF 27 March 2013 1 / 60
SLIDE 2 1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
Rosen (FF UK) LTGF 27 March 2013 2 / 60
SLIDE 3
1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
SLIDE 4 Reading
HPSG – brief introductions
Levine, R. D. and Meurers W. D. (2005). HPSG – Linguistic Approach, Formal Foundations, and Computer Realization. In: Keith Brown (ed.): Encyclopedia of Language and Linguistics, 2nd edition, Elsevier, Oxford.
http://www.ling.ohio-state.edu/~dm/papers/ell2-hpsg.pdf
Adam Przepiórkowski and Anna Kup´ s´ c (2006): HPSG for Slavicists. Glossos, 8.
http://dach.ipipan.waw.pl/~adamp/Papers/2000-sling2k/
Rosen (FF UK) LTGF 27 March 2013 4 / 60
SLIDE 5 Reading
HPSG – more extensive introductions
with a stress on formalism and implementation issues: [Richter(2004)]
http://milca.sfs.uni-tuebingen.de/A4/Course/PDF/gramandpars.pdf
an HPSG textbook in English [Sag & Wasow(1999)], [Sag et al.(2003)] an HPSG textbook in German [Müller(2007)]
http://hpsg.fu-berlin.de/~stefan/Pub/hpsg-lehrbuch.html
Rosen (FF UK) LTGF 27 March 2013 5 / 60
SLIDE 6 Reading
HPSG – standard references
Pollard & Sag (1987) Information-Based Syntax and Semantics, Volume I, Center for the Study of language and Information, Stanford [Pollard & Sag(1987)] Pollard & Sag (1994) Head-driven Phrase Structure Grammar, Center for the Study of language and Information, Stanford & The University of Chicago Press, Chicago and London [Pollard & Sag(1994)] HPSG sites:
http://hpsg.stanford.edu/ http://www.ling.ohio-state.edu/research/hpsg/
Rosen (FF UK) LTGF 27 March 2013 6 / 60
SLIDE 7 Reading
HPSG – implementations
An overview of implemented formalisms and grammars for several linguistic theories, including HPSG:
http://hpsg.fu-berlin.de/~stefan/PS/implementations.pdf
Rosen (FF UK) LTGF 27 March 2013 7 / 60
SLIDE 8
1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
SLIDE 9 Basics
History
1987: first monograph [Pollard & Sag(1987)] 1994: standard reference [Pollard & Sag(1994)] Immediate successor to Generalized Phrase Structure Grammar – GPSG [Gazdar et al.(1985)] – head features, unbounded dependencies, ID/LP format for rules Eclectic – inspired also by:
Functional Unification Grammar – FUG [Kay(1983)] – uniform notation for grammar rules, lexicon, representation Lexical-Functional Grammar – LFG [Kaplan & Bresnan(1982)] – lexical rules Categorial Grammar – CG [Ades & Steedman(1982)] – satisfying valency requirements the Government and Binding paradigm – GB [Chomsky(1981)] – analyses of various language phenomena
Rosen (FF UK) LTGF 27 March 2013 9 / 60
SLIDE 10 Basics
Why HPSG?
Precision of analysis, both in grammar and data Integration of diverse sources of knowledge Declarative grammar Constraint satisfaction system Scaleable, implementable grammars Psychological plausability
Rosen (FF UK) LTGF 27 March 2013 10 / 60
SLIDE 11 Basics
Main features 1/2
HPSG grammar is a set of axioms – ‘constraints’ The model: typed feature structures, defined in a hierarchy with multiple inheritance, for morphemes, words, phrases, sentences, ... Lexical entries and grammar rules as constraints on these expressions Constraints are combined and applied by unification Most info is stored in lexical entries, HPSG is very much lexicalized – ‘head-driven’
Rosen (FF UK) LTGF 27 March 2013 11 / 60
SLIDE 12 Basics
Main features 2/2
The concept of sign [de Saussure(1916)]
- ne description to model all properties of words and phrases:
phonology/graphemics morphology syntax semantics pragmatics combinatory (syntagmatic) properties
Rosen (FF UK) LTGF 27 March 2013 12 / 60
SLIDE 13 word
PHON
she
SYNSEM
synsem
LOCAL
local
CATEGORY
category
HEAD
CASE
nom
elist
CONTENT
pers-pronoun
INDEX 1
referential
PER
3rd
NUM
sing
GEND
fem
RESTRICTION
eset
CONTEXT
context
BACKGROUND
psoa
QUANTS
elist
NUCL
INST 1
SLIDE 14 Basics
A simple sentence as a tree
phrase
PHON Molly,sleeps SYNSEM ... HD-DTR 1 NONHD-DTRS 2
✟✟✟✟✟ ✟ ❍ ❍ ❍ ❍ ❍ ❍
2
word
PHON Molly SYNSEM ...
1
word
PHON sleeps SYNSEM ...
Edges just for readability,
1 and 2 are just values
HD-DTR and NONHD-DTR. HD-DTR and NONHD-DTR
do not represent word order. Word order is determined by PHON.
Rosen (FF UK) LTGF 27 March 2013 14 / 60
SLIDE 15 Basics
The same sentence only as a feature structure
phrase
PHON Molly,sleeps SYNSEM ... HD-DTR
word
PHON sleeps SYNSEM ...
NONHD-DTRS
word
PHON Molly SYNSEM ...
Rosen (FF UK) LTGF 27 March 2013 15 / 60
SLIDE 16
1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
SLIDE 17 Head features
Another sentence, with head features
told
V,past
✟✟✟✟✟✟ ❍ ❍ ❍ ❍ ❍ ❍
Molly
N,fem,nom,sg
him
N,m,acc,sg
that
N,n,acc,sg
Rosen (FF UK) LTGF 27 March 2013 17 / 60
SLIDE 18 phrase
PHON told,him SYNSEM
synsem
HEAD 1
✟✟✟✟✟✟ ✟ ❍ ❍ ❍ ❍ ❍ ❍ ❍
word
PHON told SYNSEM
synsem
HEAD 1
VFORM past
word
PHON him SYNSEM ...
SLIDE 19
phrase
PHON Lucy,told,him,that SYNSEM
synsem
HEAD 1
✟✟✟✟✟ ✟ ❍ ❍ ❍ ❍ ❍ ❍
word
PHON Lucy SYNSEM ...
phrase
PHON told,him,that SYNSEM
synsem
HEAD 1
✟✟✟✟✟ ❍ ❍ ❍ ❍ ❍
phrase
PHON told,him SYNSEM
synsem
HEAD 1
word
PHON that SYNSEM ...
SLIDE 20
1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
SLIDE 21 Valency
Arguments represented as complex categories in the lexical entry of the head (similar to categorial grammar) verb
VALENCY
swim NP[nom] rain NP[it] hate NP[nom], NP[acc] look NP[nom], PP[at] give NP[nom], NP[acc], NP[acc] give NP[nom], NP[acc], PP[to] try NP[nom], VP[inf] persuade NP[nom], NP[acc], VP[inf] say NP[nom], S[that]
Rosen (FF UK) LTGF 27 March 2013 21 / 60
SLIDE 22 Valency
phrase
PHON John,swims SYNSEM
synsem
HEAD 1 VAL
✟✟✟✟✟ ✟ ❍ ❍ ❍ ❍ ❍ ❍
phrase
PHON swims SYNSEM
synsem
HEAD 1 verb VAL 2
word
PHON John SYNSEM
2
Rosen (FF UK) LTGF 27 March 2013 22 / 60
SLIDE 23 Valency
Abbreviations
S phrase
SYNSEM
synsem
HEAD verb VAL
VP phrase
SYNSEM
synsem
HEAD verb VAL sign
V word
SYNSEM
synsem
HEAD verb VAL list
NP phrase
SYNSEM
synsem
HEAD noun VAL
Rosen (FF UK) LTGF 27 March 2013 23 / 60
SLIDE 24 Valency
Valency
Unlike head features, valency can change with the level of projection. Thus, the list of valency requirements cannot be included in the value of the attribute HEAD. Lucka Jirkovi nic neˇ rekla ‘Lucy didn’t say anything to Jirka.’
Rosen (FF UK) LTGF 27 March 2013 24 / 60
SLIDE 25
phrase
PHON jirkovi,neˇ
rekla
SYNSEM
synsem
HEAD 4 VAL 1 , 2
✟✟✟✟✟✟ ❍ ❍ ❍ ❍ ❍ ❍
word
PHON jirkovi SYNSEM
3
word
PHON neˇ
rekla
SYNSEM
synsem
HEAD 4 VAL 1 , 2 , 3
SLIDE 26
phrase
PHON jirkovi,nic,neˇ
rekla
SYNSEM
synsem
HEAD 4 VAL 1
✟✟✟✟✟ ✟ ❍ ❍ ❍ ❍ ❍ ❍
phrase
PHON jirkovi,neˇ
rekla
SYNSEM
synsem
HEAD 4 VAL 1 , 2
word
PHON nic SYNSEM
2
SLIDE 27
phrase
PHON lucka,jirkovi,nic,neˇ
rekla
SYNSEM
synsem
HEAD 4 VAL
✟✟✟✟✟✟ ❍ ❍ ❍ ❍ ❍ ❍
word
PHON lucka SYNSEM 1
phrase
PHON jirkovi,nic,neˇ
rekla
SYNSEM
synsem
HEAD 4 VAL 1
SLIDE 28 Valency
Valency (summary)
The features HEAD and VAL provide information
about the word’s syntactic word class and the degree its valency requirements are satisfied.
This information is partially implicit in the standard atomic categories of CF grammar: N, N’, NP , V, VP , S. These are often used as abbreviations. Often the attribute CATEGORY or CAT groups these two features, serving as the locus of the item’s syntactic information.
CAT is just one of synsem’s attributes.
Rather than signs, valency lists include synsems. Why?
Rosen (FF UK) LTGF 27 March 2013 28 / 60
SLIDE 29
1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
SLIDE 30 Grammar
The grammar architecture
Components of a grammar:
Signature (defines possible objects) Theory (specifies constraints on the objects)
Components of a theory:
Lexical entries (word-specific constraints) Lexical rules (expressing lexical generalizations – morphology, alternations) Principles (syntactic regularities) Schemas (relating phonology and syntactic structure) Relational constraints (list operations etc.)
Rosen (FF UK) LTGF 27 March 2013 30 / 60
SLIDE 31 Grammar
Rules
Abstracting from word order:
ID/LP rules (Immediate Dominance vs. Linear Precedence) dominance in DTR, precedence in PHON
Abstracting from word classes:
V, N, P , A
A general schema:
H [ VALENCY 1 ] − → H [ VALENCY 1 ⊕ 2 ] 2
Possible instantiations:
V [ VALENCY 1 ] − → V [ VALENCY 1 ⊕ 2 NP] 2 2 John swims. 2 Mary [loves strawberries]. V [ VALENCY 1 ] − → V [ VALENCY 1 NP ⊕ 2 NP] 2 loves 2 strawberries N [ VALENCY 1 ] − → N [ VALENCY 1 ⊕ 2 DET] 2 2 [my younger sister’s] boyfriend.
Rosen (FF UK) LTGF 27 March 2013 31 / 60
SLIDE 32 Grammar
More abstractions
H [ VALENCY 4 ] − → H [ VALENCY 4 ⊕ 5 ]
5
phrase →
PHON f ( 1 , 2 ) HEAD 3 VALENCY 4 HD-DTR
PHON 1 HEAD 3 VALENCY 4 ⊕ 5
NONHD-DTRS 5
The rule schema includes several types of info:
dominance concatenation of PHON values valency satisfaction head features sharing
Rosen (FF UK) LTGF 27 March 2013 32 / 60
SLIDE 33 Grammar
Principles
Schema phrase →
PHON f ( 1 , 2 ) HD-DTR
- PHON 1
- NONHD-DTRS 5
- PHON 2
-
Head Feature Principle phrase →
HEAD 3 HD-DTR
Valency Principle phrase →
SYNSEM | VALENCY 4 HD-DTR
- VALENCY 4 ⊕ 5
- NONHD-DTRS 5
Rosen (FF UK) LTGF 27 March 2013 33 / 60
SLIDE 34 Grammar
The type sign (simplified)
sign
PHON list(phonstring) SYNSEM
synsem
CAT
cat
HEAD head VAL list(synsem)
Rosen (FF UK) LTGF 27 March 2013 34 / 60
SLIDE 35
1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
SLIDE 36 Semantics
Semantics
sign
PHON list(phonstring) SYNSEM
synsem
CAT cat CONT cont
Rosen (FF UK) LTGF 27 March 2013 36 / 60
SLIDE 37 Semantics
cont
✟✟✟✟ ✟ ❍ ❍ ❍ ❍ ❍
psoa nom-obj
INDEX
index
PERS pers NUMB numb GEND gend
RESTR set(psoa)
Rosen (FF UK) LTGF 27 March 2013 37 / 60
SLIDE 38 Semantics
psoa
✟✟✟✟✟✟✟✟✟✟ ✟ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍
give
GIVER index GIVEN index RECIPIENT index
SWIMMER index
psoa
✏✏✏✏✏✏✏✏✏✏✏ ✏
❅ ❅ ❅ P P P P P P P P P P P P
INST index
INST index
INST psoa
Rosen (FF UK) LTGF 27 March 2013 38 / 60
SLIDE 39 Lexical entry for dala:
sign
SS
synsem
CAT
cat
HEAD
VFORM past
- VAL NP[nom] 1 [3rd,sg,fem], NP[dat] 2 , NP[acc] 3
CONT
give
GIVER 1 GIVEN 3 RECIPIENT 2
SLIDE 40 Semantics
NP[nom] i [3rd,sg,fem] :
synsem
CAT
cat
HEAD
CASE nom
CONT
nom-obj
INDEX i
index
PERS 3rd NUMB sg GEND fem
Rosen (FF UK) LTGF 27 March 2013 40 / 60
SLIDE 41 Semantics
A reminder: Lexicon is formally a huge disjunction of constraints on the type word: word → entry1 ∨ entry2 ∨ entry3 ∨ ... Lexical entry for kniha ‘book’, the value of CONT: nom-obj
INDEX 1
index
PERS 3rd NUMB sg GEND fem
RESTR
INST 1
Rosen (FF UK) LTGF 27 March 2013 41 / 60
SLIDE 42 Semantics
NP tlustá kniha ‘a thick book’, the value of CONT: nom-obj
INDEX 1
index
PERS 3rd NUMB sg GEND fem
RESTR
INST 1
INST 1
Rosen (FF UK) LTGF 27 March 2013 42 / 60
SLIDE 43
1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
SLIDE 44 Unbounded dependencies
Unbounded dependencies:
LOCAL/NONLOCAL, filler/gap
S
✟✟✟ ✟ ❍ ❍ ❍ ❍
NP1 dumplings S/NP1
✟✟ ✟ ❍ ❍ ❍
NP we VP/NP1
✟ ✟ ❍ ❍
V adore NP1 ǫ
Rosen (FF UK) LTGF 27 March 2013 44 / 60
SLIDE 45 Unbounded dependencies
S
✟✟✟ ✟ ❍ ❍ ❍ ❍
NP1 what S/NP1
✟✟✟ ✟ ❍ ❍ ❍ ❍
NP Mary VP/NP1
✟✟ ❍ ❍
V adores NP1 ǫ
Rosen (FF UK) LTGF 27 March 2013 45 / 60
SLIDE 46 Unbounded dependencies
S
✟✟✟ ✟ ❍ ❍ ❍ ❍
NP1 who S/NP1
✟✟✟ ✟ ❍ ❍ ❍ ❍
NP Mary VP/NP1
✟✟ ✟ ❍ ❍ ❍
V can’t VP/NP1
✟ ✟ ❍ ❍
V stand NP1 ǫ
Rosen (FF UK) LTGF 27 March 2013 46 / 60
SLIDE 47 Unbounded dependencies
S
✟✟✟ ✟ ❍ ❍ ❍ ❍
NP1 who S/NP1
✟✟✟ ✟ ❍ ❍ ❍ ❍
NP Lucy VP/NP1
✟✟✟ ✟ ❍ ❍ ❍ ❍
V said S’/NP1
✟✟✟ ✟ ❍ ❍ ❍ ❍
M that S/NP1
✟✟✟ ✟ ❍ ❍ ❍ ❍
NP Mary VP/NP1
✟✟ ✟ ❍ ❍ ❍
V can’t VP/NP1
✟ ✟ ❍ ❍
V stand NP1 ǫ
Rosen (FF UK) LTGF 27 March 2013 47 / 60
SLIDE 48 phrase
PHON list(phonstring) SS
synsem
LOCAL
local
CAT
cat
HEAD head VAL list(synsem)
NONLOCAL
SLASH set(local)
HD-DTR sign NONHD-DTRS list(sign)
SLIDE 49 Unbounded dependencies
phrase
✟✟✟ ✟ ❍ ❍ ❍ ❍
val-phrase fill-phrase
Rosen (FF UK) LTGF 27 March 2013 49 / 60
SLIDE 50 Unbounded dependencies
Filler phrase fill-phrase
PHON dumplings,we,adore SYNSEM | NONLOCAL | SLASH{} HEAD-DTR
val-phrase
PHON we,adore SYNSEM | NONLOCAL | SLASH
NONHD-DTRS
word
PHON dumplings SYNSEM | LOCAL 1
Rosen (FF UK) LTGF 27 March 2013 50 / 60
SLIDE 51 Unbounded dependencies
Trace word
PHON SYNSEM
LOCAL 1 NONLOCAL | SLASH
Rosen (FF UK) LTGF 27 March 2013 51 / 60
SLIDE 52 fill-phrase
P dumplings,we,adore
..SUBJ ..COMPS ..SLASH{}
✟✟✟✟✟ ❍ ❍ ❍ ❍ ❍
word
P dumplings
..LOCAL 1 val-phrase
P we,adore
..SUBJ ..COMPS ..SLASH
✟✟✟✟ ✟ ❍ ❍ ❍ ❍ ❍
word
P we SS 3
val-phrase
P adore
..SUBJ 3 ..COMPS ..SLASH
✟✟✟✟✟✟ ❍ ❍ ❍ ❍ ❍ ❍
word
P adore
..SUBJ 3 ..COMPS 2 ..SLASH{} word
P SS 2
LOCAL 1
..SLASH
SLIDE 53
1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
SLIDE 54 word
PHON já SS
synsem
CAT
cat
HEAD
CASE nom
CONT
nom-obj
INDEX 1
index
PERS 1st NUM sg GEND gend
RESTR{}
CTX
ctx
C-INDS
c-inds
SPEAKER 1 ADDRESSEE index
BCKGRND{}
SLIDE 55 word
PHON vy SS
synsem
CAT
cat
HEAD
CASE nom
CONT
nom-obj
INDEX 1
PERS 2nd, NUM pl, GEND gend
CTX
ctx
C-INDS
c-inds
SPEAKER 2 ADDRESSEE 1
BCKGRND
honor
HONORER 2 HONORED 1
,
INST 1
SLIDE 56
1
Reading
2
Basics
3
Head features
4
Valency
5
Grammar
6
Semantics
7
Unbounded dependencies
8
Pragmatics
9
References
SLIDE 57 References
Ades, A. E. & Steedman, M. J. (1982). On the order of words. Linguistics and Philosophy, 4, 517–558. 10.1007/BF00360804. Chomsky, N. (1981). Lectures on Government and Binding. Foris, Dordrecht. Dalrymple, M., Kaplan, R. M., Maxwell, J. T., & Zaenen, A., editors (1995). Formal Issues in Lexical-Functional Grammar. CSLI Publications, Stanford, CA.
Rosen (FF UK) LTGF 27 March 2013 57 / 60
SLIDE 58 References
de Saussure, F . (1916). Cours de linguistique générale. Paris. Publié par Ch. Bally et A. Sechehay avec la collaboration de A Riedlinger. Gazdar, G., Klein, E., Pullum, G., & Sag, I. (1985). Generalized phrase structure grammar. Harvard University Press, Cambridge, MA, USA. Kaplan, R. D. & Bresnan, J. (1982). Lexical-Functional Grammar: A Formal System for Grammatical Representation. In J. Bresnan, editor, The Mental Representation of Grammatical Relations, pages 173–281. The MIT Press, Cambridge, MA. Reprinted in [Dalrymple et al.(1995), 29-130].
Rosen (FF UK) LTGF 27 March 2013 58 / 60
SLIDE 59 References
Kay, M. (1983). Unification Grammar. Technical report, Xerox Palo Alto Research Center, Palo Alto, California. Müller, S. (2007). Head-Driven Phrase Structure Grammar: Eine Einführung. Number 17 in Stauffenburg Einführungen. Staffenburg Verlag, Tübingen. Pollard, C. & Sag, I. A. (1994). Head-Driven Phrase Structure Grammar. University of Chicago Press. Pollard, C. J. & Sag, I. A. (1987). Information-Based Syntax and Semantics. Number 13 in CSLI Lecture Notes. CSLI, Stanford, California, USA.
Rosen (FF UK) LTGF 27 March 2013 59 / 60
SLIDE 60 References
Richter, F . (2004). A Web-based Course in Grammar Formalisms and Parsing. An electronic course book, http://milca.sfs.uni-tuebingen.de/A4/Course/PDF/gramandpars.pdf. Sag, I. A. & Wasow, T. (1999). Syntactic Theory: A Formal Introduction. CSLI Publications, Stanford, CA. Sag, I. A., Wasow, T., & Bender, E. M. (2003). Syntactic Theory: A Formal Introduction. CSLI Publications, Stanford, CA, 2 edition.
Rosen (FF UK) LTGF 27 March 2013 60 / 60