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

Feature-Based Grammar

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

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

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

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

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

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

On the Notion Determiner

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

Pseudo-Passives as Adjectival Passives

Underlying and Surface Grammatical Relations in Greek consider

THE INTERNATIONAL JOURNAL OF HUMANITIES & SOCIAL STUDIES

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

An Interactive Intelligent Language Tutor Over The Internet

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

Advanced Topics in HPSG

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

AQUA: An Ontology-Driven Question Answering System

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

A relational approach to translation

Derivational and Inflectional Morphemes in Pak-Pak Language

Hindi Aspectual Verb Complexes

Compositional Semantics

An Introduction to the Minimalist Program

Accurate Unlexicalized Parsing for Modern Hebrew

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' $=~

LNGT0101 Introduction to Linguistics

Efficient Normal-Form Parsing for Combinatory Categorial Grammar

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

Constraining X-Bar: Theta Theory

Ch VI- SENTENCE PATTERNS.

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

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

BANGLA TO ENGLISH TEXT CONVERSION USING OPENNLP TOOLS

Chapter 4: Valence & Agreement CSLI Publications

Construction Grammar. University of Jena.

A General Class of Noncontext Free Grammars Generating Context Free Languages

Natural Language Processing. George Konidaris

Adapting Stochastic Output for Rule-Based Semantics

Prediction of Maximal Projection for Semantic Role Labeling

Specifying Logic Programs in Controlled Natural Language

A Constructive View of GPSG. How to Make It Work

LTAG-spinal and the Treebank

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

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

Advanced Grammar in Use

Som and Optimality Theory

ON THE SYNTAX AND SEMANTICS

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.

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

Analysis of Probabilistic Parsing in NLP

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

LFG Semantics via Constraints

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

Parsing natural language

Developing Grammar in Context

A Grammar for Battle Management Language

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

Pre-Processing MRSes

Constructions with Lexical Integrity *

arxiv:cmp-lg/ v1 16 Aug 1996

Specifying a shallow grammatical for parsing purposes

Switched Control and other 'uncontrolled' cases of obligatory control

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

Update on Soar-based language processing

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

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

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 Discourse Anaphoric Properties of Connectives

Loughton School s curriculum evening. 28 th February 2017

Words come in categories

Construction Grammar. Laura A. Michaelis.

The subject of adjectives: Syntactic position and semantic interpretation

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

GERM 3040 GERMAN GRAMMAR AND COMPOSITION SPRING 2017

Emmaus Lutheran School English Language Arts Curriculum

L1 and L2 acquisition. Holger Diessel

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 Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 2 / 31

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 3 / 31

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 4 / 31

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 5 / 31

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 6 / 31

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 7 / 31

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 8 / 31

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 9 / 31

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 10 / 31

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 11 / 31

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 12 / 31

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 13 / 31

+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 14 / 31

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 15 / 31

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 16 / 31

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 17 / 31

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 18 / 31

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 19 / 31

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 20 / 31

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 21 / 31

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 22 / 31

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 23 / 31

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 24 / 31

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 25 / 31

Topic Introduction Theory of Features Metarules Theory of Feature Instantiation Principles Examples Generalized Phrase Structure Grammar 26 / 31

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 27 / 31

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 28 / 31

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 29 / 31

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 30 / 31

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 31 / 31