Generalized Phrase Structure Grammar

Similar documents
Introduction to HPSG. Introduction. Historical Overview. The HPSG architecture. Signature. Linguistic Objects. Descriptions.

Basic Syntax. Doug Arnold We review some basic grammatical ideas and terminology, and look at some common constructions in English.

Context Free Grammars. Many slides from Michael Collins

Parsing of part-of-speech tagged Assamese Texts

"f TOPIC =T COMP COMP... OBJ

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

Feature-Based Grammar

CS 598 Natural Language Processing

Grammars & Parsing, Part 1:

Inleiding Taalkunde. Docent: Paola Monachesi. Blok 4, 2001/ Syntax 2. 2 Phrases and constituent structure 2. 3 A minigrammar of Italian 3

Proof Theory for Syntacticians

The presence of interpretable but ungrammatical sentences corresponds to mismatches between interpretive and productive parsing.

Control and Boundedness

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy

1/20 idea. We ll spend an extra hour on 1/21. based on assigned readings. so you ll be ready to discuss them in class

The Interface between Phrasal and Functional Constraints

The building blocks of HPSG grammars. Head-Driven Phrase Structure Grammar (HPSG) HPSG grammars from a linguistic perspective

11/29/2010. Statistical Parsing. Statistical Parsing. Simple PCFG for ATIS English. Syntactic Disambiguation

Machine Learning from Garden Path Sentences: The Application of Computational Linguistics

ENGBG1 ENGBL1 Campus Linguistics. Meeting 2. Chapter 7 (Morphology) and chapter 9 (Syntax) Pia Sundqvist

On the Notion Determiner

Underlying and Surface Grammatical Relations in Greek consider

Pseudo-Passives as Adjectival Passives

An Interactive Intelligent Language Tutor Over The Internet

THE INTERNATIONAL JOURNAL OF HUMANITIES & SOCIAL STUDIES

Approaches to control phenomena handout Obligatory control and morphological case: Icelandic and Basque

Some Principles of Automated Natural Language Information Extraction

Developing a TT-MCTAG for German with an RCG-based Parser

Using dialogue context to improve parsing performance in dialogue systems

Basic Parsing with Context-Free Grammars. Some slides adapted from Julia Hirschberg and Dan Jurafsky 1

Case government vs Case agreement: modelling Modern Greek case attraction phenomena in LFG

Advanced Topics in HPSG

AQUA: An Ontology-Driven Question Answering System

Towards a Machine-Learning Architecture for Lexical Functional Grammar Parsing. Grzegorz Chrupa la

Derivational and Inflectional Morphemes in Pak-Pak Language

A relational approach to translation

Hindi Aspectual Verb Complexes

Compositional Semantics

Hans-Ulrich Block, Hans Haugeneder Siemens AG, MOnchen ZT ZTI INF W. Germany. (2) [S' [NP who][s does he try to find [NP e]]s IS' $=~

Accurate Unlexicalized Parsing for Modern Hebrew

An Introduction to the Minimalist Program

Efficient Normal-Form Parsing for Combinatory Categorial Grammar

LNGT0101 Introduction to Linguistics

Constraining X-Bar: Theta Theory

a) analyse sentences, so you know what s going on and how to use that information to help you find the answer.

Towards a MWE-driven A* parsing with LTAGs [WG2,WG3]

Structure-Preserving Extraction without Traces

Language properties and Grammar of Parallel and Series Parallel Languages

Ch VI- SENTENCE PATTERNS.

BANGLA TO ENGLISH TEXT CONVERSION USING OPENNLP TOOLS

Chapter 4: Valence & Agreement CSLI Publications

Language Acquisition by Identical vs. Fraternal SLI Twins * Karin Stromswold & Jay I. Rifkin

A General Class of Noncontext Free Grammars Generating Context Free Languages

Construction Grammar. University of Jena.

Natural Language Processing. George Konidaris

Adapting Stochastic Output for Rule-Based Semantics

Specifying Logic Programs in Controlled Natural Language

LTAG-spinal and the Treebank

Prediction of Maximal Projection for Semantic Role Labeling

A Constructive View of GPSG. How to Make It Work

Minimalism is the name of the predominant approach in generative linguistics today. It was first

Som and Optimality Theory

Advanced Grammar in Use

ON THE SYNTAX AND SEMANTICS

Universal Grammar 2. Universal Grammar 1. Forms and functions 1. Universal Grammar 3. Conceptual and surface structure of complex clauses

Heads and history NIGEL VINCENT & KERSTI BÖRJARS The University of Manchester

Derivational: Inflectional: In a fit of rage the soldiers attacked them both that week, but lost the fight.

Analysis of Probabilistic Parsing in NLP

Objectives. Chapter 2: The Representation of Knowledge. Expert Systems: Principles and Programming, Fourth Edition

Chapter 3: Semi-lexical categories. nor truly functional. As Corver and van Riemsdijk rightly point out, There is more

LFG Semantics via Constraints

Parsing natural language

Developing Grammar in Context

A Minimalist Approach to Code-Switching. In the field of linguistics, the topic of bilingualism is a broad one. There are many

Pre-Processing MRSes

A Grammar for Battle Management Language

Today we examine the distribution of infinitival clauses, which can be

Constructions with Lexical Integrity *

arxiv:cmp-lg/ v1 16 Aug 1996

Switched Control and other 'uncontrolled' cases of obligatory control

Specifying a shallow grammatical for parsing purposes

Dependency, licensing and the nature of grammatical relations *

Aspectual Classes of Verb Phrases

COMPUTATIONAL COMPLEXITY OF LEFT-ASSOCIATIVE GRAMMAR

Derivations (MP) and Evaluations (OT) *

BULATS A2 WORDLIST 2

Parsing with Treebank Grammars: Empirical Bounds, Theoretical Models, and the Structure of the Penn Treebank

Campus Academic Resource Program An Object of a Preposition: A Prepositional Phrase: noun adjective

Update on Soar-based language processing

Second Language Acquisition of Complex Structures: The Case of English Restrictive Relative Clauses

The Discourse Anaphoric Properties of Connectives

RANKING AND UNRANKING LEFT SZILARD LANGUAGES. Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A ER E P S I M S

The subject of adjectives: Syntactic position and semantic interpretation

Loughton School s curriculum evening. 28 th February 2017

Words come in categories

Construction Grammar. Laura A. Michaelis.

GERM 3040 GERMAN GRAMMAR AND COMPOSITION SPRING 2017

Adjectives tell you more about a noun (for example: the red dress ).

L1 and L2 acquisition. Holger Diessel

Emmaus Lutheran School English Language Arts Curriculum

Transcription:

Generalized Phrase Structure Grammar Petr Horáček, Eva Zámečníková and Ivana Burgetová Department of Information Systems Faculty of Information Technology Brno University of Technology Božetěchova 2, 612 00 Brno, CZ FRVŠ MŠMT FR97/2011/G1

Outline Introduction Generalized Phrase Structure Grammar 2 / 59

Outline Introduction Theory of Features Generalized Phrase Structure Grammar 3 / 59

Outline Introduction Theory of Features Metarules Generalized Phrase Structure Grammar 4 / 59

Outline Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Generalized Phrase Structure Grammar 5 / 59

Outline Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 6 / 59

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 7 / 59

Generalized Phrase Structure Grammar Motivation Attempt to capture the generalizations made by transformations (in transformational grammar) within context-free grammar. We could avoid overgeneration resulting from unrestricted transformations. We could use parsing algorithms for CFG. (Gazdar et al., 1985) Generalized Phrase Structure Grammar 8 / 59

Generalized Phrase Structure Grammar Motivation Attempt to capture the generalizations made by transformations (in transformational grammar) within context-free grammar. We could avoid overgeneration resulting from unrestricted transformations. We could use parsing algorithms for CFG. (Gazdar et al., 1985) Means Mechanisms to recreate the effects of transformations within context-free formalism. Complex features Capture long-distance dependencies without using movement rules. Metarules Allow generalizations. Generalized Phrase Structure Grammar 9 / 59

Phrase Structure Grammar Definition A phrase structure grammar (PSG) G is a quadruple G = (N, T, P, S), where N is a finite set of nonterminals, T is a finite set of terminals, N T = P (N T ) N(N T ) (N T ) is a finite relation we call each (x, y) P a rule (or production) and usually write it as S N is the start symbol. x y, Generalized Phrase Structure Grammar 10 / 59

Phrase Structure Grammar Derivation in PSG Let G be a PSG. Let u, v (N T ) and p = x y P. Then, we say that uxv directly derives uyv according to p in G, written as uxv G uyv [p] or simply uxv uyv We further define + as the transitive closure of and as the transitive and reflexive closure of. Generated Language Let G be a PSG. The language generated by G is defined as L(G) = {w : w T, S w} Generalized Phrase Structure Grammar 11 / 59

Context-Free Grammar Definition A context-free grammar is a PSG G = (N, T, P, S) such that every rule in P is of the form: A x where A N and x (N T ). Generalized Phrase Structure Grammar 12 / 59

Generalized Phrase Structure Grammar Components of GPSG 1 Grammatical rule format 2 Theory of features 3 Properties of metarules 4 Theory of feature instantiation principles Generalized Phrase Structure Grammar 13 / 59

Generalized Phrase Structure Grammar Components of GPSG 1 Grammatical rule format 2 Theory of features 3 Properties of metarules 4 Theory of feature instantiation principles Grammatical rule format We assume the standard interpretation of context-free phrase structure rules A BC (Chomsky normal form) Generalized Phrase Structure Grammar 14 / 59

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 15 / 59

Features Components of GPSG 1 Grammatical rule format 2 Theory of features 3 Properties of metarules 4 Theory of feature instantiation principles Features Two types of features: 1 Atom-valued 2 Category-valued Generalized Phrase Structure Grammar 16 / 59

Atom-valued Features Types of Features 1 Atom-valued 2 Category-valued Atom-valued Features Boolean values Symbols such as: [ INF] finite, an inflected verb eats [ INV ] inverted subject-auxiliary inversion, as in Is John sick? [+INF] infinitival to eat Generalized Phrase Structure Grammar 17 / 59

Category-valued Features Types of Features 1 Atom-valued 2 Category-valued Category-valued Features The value is something like a nonterminal symbol (which is itself a feature specification). SUBCAT feature that identifies the complement of the verb SLASH Generalized Phrase Structure Grammar 18 / 59

SLASH Feature Represents missing constituent. Consider a normal transitive verb phrase VP. Then, VP[SLASH = NP], or VP/NP for short, represents this VP when it has an NP missing. VP with an NP gap S/NP sentence with a missing NP, etc. Generalized Phrase Structure Grammar 19 / 59

SLASH Feature Represents missing constituent. Consider a normal transitive verb phrase VP. Then, VP[SLASH = NP], or VP/NP for short, represents this VP when it has an NP missing. VP with an NP gap S/NP sentence with a missing NP, etc. Example VP hit the floor VP/NP hit [e] (as in Who did John hit?) Generalized Phrase Structure Grammar 20 / 59

+WH Feature To handle wh-questions (Who did John hit?), we need another feature besides SLASH. Encode the questionlike nature of these sentences. +WH Generalized Phrase Structure Grammar 21 / 59

+WH Feature To handle wh-questions (Who did John hit?), we need another feature besides SLASH. Encode the questionlike nature of these sentences. +WH Example Now we can differentiate the following NPs: 1 WH[the man] 2 +WH[which man] 3 WH[John] 4 +WH[who] Generalized Phrase Structure Grammar 22 / 59

Feature Extension Extension of feature specification = larger feature specification containing it Generalized Phrase Structure Grammar 23 / 59

Feature Extension Extension of feature specification = larger feature specification containing it Example Feature specification: {[+N], [+V ]} The category A - adjective Generalized Phrase Structure Grammar 24 / 59

Feature Extension Extension of feature specification = larger feature specification containing it Example Feature specification: {[+N], [+V ]} The category A - adjective Possible extension: Generalized Phrase Structure Grammar 25 / 59

Feature Extension Extension of feature specification = larger feature specification containing it Example Feature specification: {[+N], [+V ]} The category A - adjective Possible extension: {[+N], [+V ], Generalized Phrase Structure Grammar 26 / 59

Feature Extension Extension of feature specification = larger feature specification containing it Example Feature specification: {[+N], [+V ]} The category A - adjective Possible extension: {[+N], [+V ],[+PRED]} Generalized Phrase Structure Grammar 27 / 59

Feature Extension Extension of feature specification = larger feature specification containing it Example Feature specification: {[+N], [+V ]} The category A - adjective Possible extension: {[+N], [+V ],[+PRED]} Adjective in a predicative position Mary is [ {[+N],[+V ],[+PRED]} intelligent] Generalized Phrase Structure Grammar 28 / 59

Feature Unification Similar to the set union operation. Generalized Phrase Structure Grammar 29 / 59

Feature Unification Similar to the set union operation. Example Feature specifications: {[+V ], [+PRED]} {[ N], [+V ]} Generalized Phrase Structure Grammar 30 / 59

Feature Unification Similar to the set union operation. Example Feature specifications: {[+V ], [+PRED]} {[ N], [+V ]} Unification: Generalized Phrase Structure Grammar 31 / 59

Feature Unification Similar to the set union operation. Example Feature specifications: {[+V ], [+PRED]} {[ N], [+V ]} Unification: {[+V ], Generalized Phrase Structure Grammar 32 / 59

Feature Unification Similar to the set union operation. Example Feature specifications: {[+V ], [+PRED]} {[ N], [+V ]} Unification: {[+V ],[+PRED], Generalized Phrase Structure Grammar 33 / 59

Feature Unification Similar to the set union operation. Example Feature specifications: {[+V ], [+PRED]} {[ N], [+V ]} Unification: {[+V ],[+PRED],[ N] Generalized Phrase Structure Grammar 34 / 59

Feature Unification Similar to the set union operation. Example Feature specifications: {[+V ], [+PRED]} {[ N], [+V ]} Unification: {[+V ],[+PRED],[ N]} Generalized Phrase Structure Grammar 35 / 59

Feature Unification Similar to the set union operation. Example Feature specifications: {[+V ], [+PRED]} {[ N], [+V ]} Unification: {[+V ],[+PRED],[ N]} Note: If features contradict each other, unification is undefined. Generalized Phrase Structure Grammar 36 / 59

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 37 / 59

Metarules Components of GPSG 1 Grammatical rule format 2 Theory of features 3 Properties of metarules 4 Theory of feature instantiation principles Metarules Metarule function from lexical rules to lexical rules. Metarules generate related phrase structure rules. Similar function to transformations in transformational grammar. Generalized Phrase Structure Grammar 38 / 59

Passive Metarule Example John washes the car. The car is washed by John. We could write rules to generate the second sentence directly. Problem with such approach: no generalization Generalized Phrase Structure Grammar 39 / 59

Passive Metarule Example John washes the car. The car is washed by John. We could write rules to generate the second sentence directly. Problem with such approach: no generalization Passive Metarule VP W NP VP[PASSIVE] W(PP[+by]) For every context-free rule introducing VP as an NP and some variable number of constituents (including the verb) indicated by W, another context-free rule is introduced, such that: 1 VP is marked with [+PASSIVE] feature (atom-valued) 2 NP present in the active form is missing 3 optimal PP is introduced, marked with [by] feature (atom-valued) selects preposition by W varying parameter standard rewrite rules produced when W is instantiated Generalized Phrase Structure Grammar 40 / 59

Passive Metarule Passive Metarule VP W NP VP[PASSIVE] W(PP[+by]) Example [ VP washes the car] [ VP washed (by NP)] VP VP V NP V PP washes the car washed P NP by Notice that the passive metarule makes no reference to the subject of the sentence this is because the semantics for the verb will be different for different instantiations. Generalized Phrase Structure Grammar 41 / 59

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 42 / 59

Theory of Feature Instatiation Principles Components of GPSG 1 Grammatical rule format 2 Theory of features 3 Properties of metarules 4 Theory of feature instantiation principles Theory of Feature Instatiation Principles Metarules capture generalizations made by local transformations in a transformational grammar. This will allow us to handle long-distance dependencies. Generalized Phrase Structure Grammar 43 / 59

HEAD and FOOT Features Phrase structure rules specify that one category is the head of the phrase. Head the category-defining element of the phrase Foot the complement of the phrase Example NP N Comp Head: N Foot: Comp Generalized Phrase Structure Grammar 44 / 59

HEAD and FOOT Features Phrase structure rules specify that one category is the head of the phrase. Head the category-defining element of the phrase Foot the complement of the phrase Example NP N Comp Head: N Foot: Comp Sets of Features 1 HEAD features = {N, V, PLURAL, PERSON, PAST, BAR,... } 2 FOOT features = {SLASH, WH} Generalized Phrase Structure Grammar 45 / 59

HEAD Features Properties of the head elements of rules Values: + or HEAD Feature Principle The HEAD features of a child node must be identical to the HEAD features of the parent. Generalized Phrase Structure Grammar 46 / 59

FOOT Features Encode more complex information about the movement of wh-phrases and NPs Values: categories FOOT Feature Principle The FOOT features instantied on a parent category in a tree must be identical to the unification of the instantiated FOOT feature specifications in all its children. Generalized Phrase Structure Grammar 47 / 59

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 48 / 59

Example: wh-questions Example Who drives a Honda? What does John drive e? In transformational grammar, we introduce a transformational rule to move the wh-phrase who or what from the deep structure position (marked with a trace e) to the front of the sentence. In GPSG, we can generate the sentence without using transformations. Generalized Phrase Structure Grammar 49 / 59

Example: wh-questions Example Who drives a Honda? What does John drive e? Idea In transformational grammar, we introduce a transformational rule to move the wh-phrase who or what from the deep structure position (marked with a trace e) to the front of the sentence. In GPSG, we can generate the sentence without using transformations. Encode the movement information on the node of the tree directly. Pass this information up and down the tree using features. Generalized Phrase Structure Grammar 50 / 59

Example: wh-questions First, consider a simple sentence such as the following Example John drives a Honda. Generalized Phrase Structure Grammar 51 / 59

Example: wh-questions First, consider a simple sentence such as the following Example John drives a Honda. The rules necessary to build such sentence are: S NP VP VP TV NP TV transitive verb, which takes NP as its subject TV = {[+V ], [ N], [SUBCAT = NP]} Generalized Phrase Structure Grammar 52 / 59

Example: wh-questions First, consider a simple sentence such as the following Example John drives a Honda. The rules necessary to build such sentence are: S NP VP VP TV NP TV transitive verb, which takes NP as its subject TV = {[+V ], [ N], [SUBCAT = NP]} In order to generate wh-movement sentence, we assign the value NP to the feature SLASH on the VP node. This indicates that there is a constituent missing. Generalized Phrase Structure Grammar 53 / 59

Example: wh-questions In GPSG, according to the FOOT feature principle, rule of the form VP NP SP implies rule of the form VP/NP NP/NP Similarly, the rule S NP VP allows two other rules: S/NP NP VP/NP S/NP NP/NP VP Generalized Phrase Structure Grammar 54 / 59

Example: wh-questions In GPSG, according to the FOOT feature principle, rule of the form VP NP SP implies rule of the form VP/NP NP/NP Similarly, the rule S NP VP allows two other rules: S/NP NP VP/NP S/NP NP/NP VP Using the two features WH and SLASH, we can account for the wh-questions. Assume that the rules for expanding the sentence are given as follows S NP VP S NP S/NP We can add the [+WH] feature to S applying the FOOT feature principle, the information will be transmitted down the tree. Note: WH cannot cooccur with SLASH Generalized Phrase Structure Grammar 55 / 59

Example: wh-questions Example Who drives a Honda? What does John drive? S NP VP S NP S/NP Example S[+WH] S[+WH] NP[+WH] VP NP[+WH] S/NP who V NP what NP VP/NP drives a Honda John V NP/NP drive e Generalized Phrase Structure Grammar 56 / 59

References James Allen: Natural Language Understanding, The Benjamin/Cummings Publishing Company. Inc., 2005 Gerald Gazdar, Ewan H. Klein, Geoffery K. Pullum, Ivan A. Sag: Generalized Phrase Structure Grammar, Harvard University Press, 1985 Robert N. Moll, Michael A. Arbib, A. J. Kfoury: An Introduction to Formal Language Theory, Springer-Verlag, 1988 Generalized Phrase Structure Grammar 57 / 59

Thank you for your attention!

End