Ling 5801: Lecture Notes 7 From Programs to Context-Free Grammars

Size: px
Start display at page:

Download "Ling 5801: Lecture Notes 7 From Programs to Context-Free Grammars"

Transcription

1 Ling 5801: Lecture otes 7 From Programs to Context-Free rammars 1. The rules we used to define programs make up a context-free grammar A Context-Free rammar is a tuple C,X,S,R, where: C is a finite set of type or category symbols X C is a set of terminal symbols (e.g. if,:,...) S C is a set of start symbols (e.g. program ) R C C C is a set of rewrite rules of the formc c c (or c,c,c ) The symbol to the left of each arrow may be called the parent The symbols to the right of each arrow may be called the children rammars allowing only two children per rule are called binary-branching For example: cattoy = {S, P, VP, the, cat, hits, toy}, {the, cat, hits, toy}, {S}, {S P VP, P the cat, P the toy, VP hits P} 2. Languages accepted by a CF For any CF = C,X,S,R : L() = {x 1..x T c S s.t. c x 1..x T } wherecyieldsx i..x j if and only if there is a treeτ w. root c, all leaves inx i..x j, branches inr (defining trees τ as sets of constituents c,i,j of categorycspanning inputitoj): { ifc ifi =j : =x i : True c ifc x i x i..x j iff : False ifi τ w. root c,i,j c,i,j τ <j : R(c d e ) k,d,e s.t. d,i,k, e,k +1,j τ For example, the cat hits the toy is inl( cattoy ) because this treeτ exists: S P VP the cat hits P the toy with constituents: τ = { S,1,5, P,1,2, the,1,1, cat,2,2, VP,3,5, hits,3,3, P,4,5, the,4,4, toy,5,5 } 1

2 We can now move one branch conjunct outside the disjunction over trees (distributive axiom): { ifc=xi : True ifi=j : ifc x i : False c x i..x j iff ifi<j : d e) k,d,er(c {... τ w. root d,i,k c,i,j τ and identify parenthesized terms as recursive instances ofc x i..x j : { ifc=xi : True ifi=j : c ifc x i : False x i..x j iff ifi<j : ) ) d e) (d k,d,er(c x i..x k (e x k+1..x j More simply: τ w. root e,k+1,j c,i,j τ {... c x i..x j iff { ifi = j : c = xi ifi < j : k,d,e s.t. c de R and d x i..x k and e x k+1..x j And the languages recognizable by a CF are: L(CF) = {L() CF } 3. L(CF) L(CF 2 children per branch ), so L(CF) = L(CF 2 children per branch ) CFs which have rules R containing more than two children can be reduced to binaryr : R = {c c 0 c 1... c B c c 0... c B R} {c b... c B c b c b+1... c B c c 0... c B R, 1 b < B} C = C {c b... c B c c 0... c B R, 1 b < B} For example: VP pick P up,... would become: VP pick P up, P up P up, L(CF 2 children per branch ) L(CF 2 children per branch ), so L(CF) = L(CF 2 children per branch ) CFs which have rules R containing fewer than two children can be reduced to binary R : (a) First, obtain reflexive transitive closurer ( C ) of unary rules in R (likeǫ-transitions in FSA): R (0) = {c c c C} R (k) = {c c c c R (k 1), c c R} (b) Then add these closure expansions to children of each binary expansion: R = {c d e c d e R, d d R ( C ), e e R ( C ) } 2

3 (c) Then add these closure expansions to the set of start symbols: S = S {c c S, c c R ( C ) } For example, adding the following unary rule to our cat-toy grammar: P Meowy would result in the addition of the following binary rules: S Meowy VP, VP hits Meowy 5. A weak but intuitive claim: L(RE) L(CF) We can write a CF (ρ) implementing any RE ρ, concatenated to a start symbol. First, remove epsilons from Kleene star: ρ = (ǫ ρ + ) (ǫ ρ 1 )ρ 2 = (ρ 2 ρ 1 ρ 2 ) ρ 1 (ǫ ρ 2 ) = (ρ 1 ρ 1 ρ 2 ) Then map regular expression syntax to CF rules: R (ρ1 ρ 2 ) = R (ρ1 ) R (ρ2 ) {c ρ1 ρ 2 c ρ1 c ρ2 } R (ρ1 ρ 2 )= R (ρ1 ) R (ρ2 ) {c ρ1 ρ 2 c ρ1, c ρ1 ρ 2 c ρ2 } R (ρ + 1 ) = R (ρ1 ) {c ρ + c ρ 1 1 c ρ +, c 1 ρ + c ρ 1 1 } 6. A strong claim: L(RE) L(CF) There is a language that cannot be recognized by a RE: a n b n (proof by pumping lemma)...which can be recognized by a CF: (proof by existance: {S, a, b},{a, b},{s},{s a S b, S a b} ) 7. We can use CFs to model natural languages like English Do natural languages have natural category types that we can use in CF rules? Yes! First, observe that natural languages use different argument structures for different verbs: They sleep. one argument ahead (intransitive) They find pets. one argument ahead and one argument behind (transitive) They give people pets. one argument ahead, two arguments behind (ditransitive) ext, observe natural languages coordinate conjunctions (combine like types): α α and α. [ β [ β They find people] and [ β they find pets]]. sounds ok (β is sentence) They find [ γ [ γ people] and [ γ pets]]. sounds ok (γ is noun phrase) *They find [ γ [ β they find people] and [ γ pets]]. sounds wrong; conjuncts must match 3

4 ow, allowable conjunctions give us insight into the category structure of language: They [ δ [ δ sleep] and [ δ find pets]]. sounds ok (δ is verb phrase) They [ η [ η find] and [ η give people]] pets. sounds ok (but what sη?) Transitive verbs (find) match type with ditransitive verb + indirect object (give people)! Both lack argument ahead and behind it seems types are defined by missing arguments! Formalize set of categoriesc as follows clauses with various unmet requirements: (a) every U is inc, for some set U of primitive categories; (b) every C O C is inc, for some set O of type-combining operators; (c) nothing else is inc Define primitive categories U = {, V}: : noun-headed category with no missing arguments (noun phrase) V: verb-headed category with no missing arguments (sentence) Define type-combining operators O = {-a, -b}: α-aβ : α lacking β argument ahead (e.g. V-a for intransitiveδ above) α-bβ : α lackingβ argument behind (e.g. V-a-b for transitiveη above) ow we can define CF rules R over these categories: α β α-aβ : argument attachment ahead α α-bβ β : argument attachment behind α α and α : conjunction These three rules model all of the above sentences: V V V-a V-a They V-a and V-a They V-a-b sleep V-a-b V-a-b and V-a-b pets find pets find V-a-b-b give people Also note that the parents in these rules all have simpler types than the children. This means for any lexicon (constraining types at tree leaves), the set of categoriesc is finite. 4

5 8. Limits of CFs atural languages may also use non-local dependencies. In English, these show up in topicalization, which seem to use a gap at one argument: These pets, you say they found. These coordinate as well, but our test shows categories with gaps differ from those without: These pets, you [ δ [ δ say they found ] and [ δ think gave people joy]]. sounds ok *These pets, you [ δ [ V-a say they found pets] and [ δ think gave people joy]]. wrong We can model this by adding a new type-combining operator for non-local dependencies: α-gβ : α lacking non-localβ argument (e.g. V-a-g for intransitiveδ above) and adding rules to introduce non-local dependencies: α-gβ α-aβ : introduce non-local dependency to argument ahead α-gβ α-bβ : introduce non-local dependency to argument behind and adding rules to attach non-local dependencies: α β α-gβ : non-local dependency attachment and modifying existing rules to propagate non-local dependencies ψ m {-g} C: αψ 1..M βψ 1..m α-aβψ m+1..m : argument attachment ahead, with propagation αψ 1..M α-bβψ 1..m βψ m+1..m : argument attachment behind, with propagation Here s the analysis: V V-g These pets V-a-g you V-a-g and V-a-g V-a-bV V-g V-a-bV V-g say V-a-g think V-a they V-a-b V-a-b found V-a-b-b joy gave people 5

6 ote that M above is unbounded, so our rules no longer guarantee a finite set of categories. (Any number of arguments may be extracted and propagated up from children.) Some use evidence like this to argue language isn t context-free but mildly context-sensitive [Shieber, 1985, Joshi, 1985, Steedman, 2000]. In practice, though, we can just constrain category sets to combinations seen in training data. 9. atural language grammar: English = C,X,S,R (generatively sound, not complete) (a) Categories C defined from set of primitives U and set of type-constructing operators O: i. Primitive categoriesu different ways to say the same thing: V finite / declarative sentence (e.g. they knew it ) I infinitive clause (e.g. them to know it, as in we expect... ) B base-form clause (e.g. them know it, as in we let... ) L participle clause (e.g. them known it complete form not used) A adjectival/predicative/ small clause (e.g. them knowing it, it known, as in we consider... ) R adverbial clause (e.g. them knowingly complete form not used) gerund clause (e.g. them knowing it ) accus. noun phrase / nominal clause (e.g. their knowledge of it, her, him, Kim ) 1S nom. 1st-pers. sing. noun phrase (e.g. I ) 1P nom. 1st-pers. plur. noun phrase (e.g. we ) 2 nom. 2nd-pers. noun phrase (e.g. you ) 3S nom. 3rd-pers. sing. noun phrase (e.g. their knowledge of it, she, he, Kim ) 3P nom. 3rd-pers. plur. noun phrase (e.g. they, the risks ) D determiner (clause) (e.g. their knowledge of it s, the, their ) O non-possessive genitive (clause) (e.g. of their knowledge of it ) C complementized clause (e.g. that they know it, as in we think... ) E embedded infinitive clause (e.g. for them to know it, as in we hope... ) Q (polar) question (e.g. did they know it ) S start symbol / sentence / utterance (e.g. know it, yeah, duh ) ii. Type-constructing operators O these allow specification of unmet requirements: -a lacking initial argument (precedes lexical head / main word, e.g. subject) -b lacking final argument (follows lexical head / main word, e.g. object) -c lacking initial conjunct (precedes conjunction) -d lacking final conjunct (follows conjunction) -g lacking gap argument (missing at any position in clause) -h lacking right-node-raised argument (right-node raising) -i lacking interrogative pronoun referent -r lacking relative pronoun referent iii. Define categories C as follows clauses with various unmet requirements: A. everyu is inc B. everyc O C is inc C. nothing else is in C English needs categories for interrog. and relative pronouns, clauses, and gapped clauses: 6

7 V-g gapped finite clause / bare relative B-g gapped base-form clause -i interrogative pronoun Q-i content question V-i embedded question -r relative pronoun V-r relative clause... (and others) and categories for constituents within clauses: (e.g. Kim gave ǫ to Chris ) (e.g. Kim give ǫ to Chris ) (e.g. what ) (e.g. what did Kim giveǫto Chris ) (e.g. what Kim gave ǫ to Chris ) (e.g. which ) (e.g. which Kim gave ǫ to Chris ) -ad, 3S-aD, 3P-aD common noun, lacking determiner (e.g. risk ) V-a3S intransitive verb, lacking subject (e.g. sleeps ) V-a3S-b transitive verb, lacking subject, object (e.g. finds ) V-a3S-b-b ditransitive verb (e.g. gives ) V-a3S-bC bridge verb (e.g. thinks ) V-a3S-b(I-a) raising verb (e.g. seems ) V-a3S-b(B-a) auxiliary verb (e.g. would ) V-a3S-bE (e.g. hopes ) V-a3S-b(Q-i) (e.g. wonders ) A-a adjective / predicative form of verb (e.g. asleep, knowing, known ) A-a-b adjectival preposition (e.g. in, finding ) A-a-b(I-a-g) tough adjective (e.g. tough ) R-a adverb (e.g. knowingly ) R-a-b adverbial preposition (e.g. into ) R-a-bV discourse connective (e.g. after )... (and others) (b) Observation symbols: X = {the,a,and,car,...} (c) Start symbols: S = {S} (d) Rules in R: i. lexical items:... (e.g. D the) ii. arguments: forc U ({-a, -b, -c, -d} C), d C: c d c-ad, c c-bd d e.g.: V 3P V-a3P babies cry iii. modifiers: forc U ({-a, -b, -c, -d} C), u U: c c u-a, c u-ac e.g.: 3P 3P people A-a here 7

8 iv. hypothesize gaps: forc C, d C: c-gd c-ad c-gd c-bd c-gd c v. propagate non-local arguments: fora b c R, ψ {-g, -h, -i, -r} C: aψ bcψ, aψ bψ c, aψ bψ cψ e.g.:... something V-g 2 you V-a2-g V-a2-b ate vi. connect gaps to modificands or fillers: forc C, d C, e C: e e c-rd, c-re d-re c-gd e e c-gd, c-ie d-ie c-gd e.g.: something 2 you V-g V-a2-g V-a2-b ate vii. conjuncts: forc C, d C: c d c-cd, c-cd d c-cd, c c-dd d e.g.: -c lions -c tigers -c-d and bears viii. elided arguments (e.g. determiners): forc C, d C: c c-ad c c-bd e.g.: -ad people ix. sentential forms: 8

9 For example: S V declarative sentence (e.g. Kim slept ) S B-a imperative sentence (e.g. sleep! ) S Q polar question (e.g. did Kim sleep? ) S Q-i content question (e.g. what did Kim drive? ) S V-g topicalized sentence (e.g. that park I like ) S S V-gS topicalized sentence (e.g. I ate she said ) S Q-i -i Q-g what Q-b(B-a) B-a-g Q-b(B-a)-b2 2 B-a-b(I-a) I-a-g do you want I-a-b(B-a) B-a-g to B-a-g R-a B-a-b(A-a)-g A-a R-a-b B-a-b(A-a)-b white in D -ad paint the den 10. Parsing as deduction: Can also express rules as inferences in natural deduction: c de d e c Parse trees are then proofs: paint the B-a-b(A-a)-bwhite in D B-a-b(A-a)-g A-aR-a-b to B-a-g R-a do you want I-a-b(B-a) B-a-g what -i Q-b(B-a)-b2 2 B-a-b(I-a) Q-b(B-a) I-a-g B-a-g Q-g Q-i S den -ad 9

10 References [Joshi, 1985] Joshi, A. K. (1985). How much context sensitivity is necessary for characterizing structural descriptions: Tree adjoining grammars. In D. Dowty, L. K. and Zwicky, A., editors, atural language parsing: Psychological, computational and theoretical perspectives, pages Cambridge University Press, Cambridge, U.K. [Shieber, 1985] Shieber, S. (1985). Evidence against the context-freeness of natural language. Linguistics and Philosophy, 8: [Steedman, 2000] Steedman, M. (2000). The syntactic process. MIT Press/Bradford Books, Cambridge, MA. 10

Lecture 7. Logic. Section1: Statement Logic.

Lecture 7. Logic. Section1: Statement Logic. Ling 726: Mathematical Linguistics, Logic, Section : Statement Logic V. Borschev and B. Partee, October 5, 26 p. Lecture 7. Logic. Section: Statement Logic.. Statement Logic..... Goals..... Syntax of Statement

More information

Parsing Beyond Context-Free Grammars: Tree Adjoining Grammars

Parsing Beyond Context-Free Grammars: Tree Adjoining Grammars Parsing Beyond Context-Free Grammars: Tree Adjoining Grammars Laura Kallmeyer & Tatiana Bladier Heinrich-Heine-Universität Düsseldorf Sommersemester 2018 Kallmeyer, Bladier SS 2018 Parsing Beyond CFG:

More information

Ling 240 Lecture #15. Syntax 4

Ling 240 Lecture #15. Syntax 4 Ling 240 Lecture #15 Syntax 4 agenda for today Give me homework 3! Language presentation! return Quiz 2 brief review of friday More on transformation Homework 4 A set of Phrase Structure Rules S -> (aux)

More information

Context Free Grammars

Context Free Grammars Automata and Formal Languages Context Free Grammars Sipser pages 101-111 Lecture 11 Tim Sheard 1 Formal Languages 1. Context free languages provide a convenient notation for recursive description of languages.

More information

Introduction to Semantics. The Formalization of Meaning 1

Introduction to Semantics. The Formalization of Meaning 1 The Formalization of Meaning 1 1. Obtaining a System That Derives Truth Conditions (1) The Goal of Our Enterprise To develop a system that, for every sentence S of English, derives the truth-conditions

More information

Lecture 4: Proposition, Connectives and Truth Tables

Lecture 4: Proposition, Connectives and Truth Tables Discrete Mathematics (II) Spring 2017 Lecture 4: Proposition, Connectives and Truth Tables Lecturer: Yi Li 1 Overview In last lecture, we give a brief introduction to mathematical logic and then redefine

More information

Parsing with Context-Free Grammars

Parsing with Context-Free Grammars Parsing with Context-Free Grammars Berlin Chen 2005 References: 1. Natural Language Understanding, chapter 3 (3.1~3.4, 3.6) 2. Speech and Language Processing, chapters 9, 10 NLP-Berlin Chen 1 Grammars

More information

Model-Theory of Property Grammars with Features

Model-Theory of Property Grammars with Features Model-Theory of Property Grammars with Features Denys Duchier Thi-Bich-Hanh Dao firstname.lastname@univ-orleans.fr Yannick Parmentier Abstract In this paper, we present a model-theoretic description of

More information

Unterspezifikation in der Semantik Scope Semantics in Lexicalized Tree Adjoining Grammars

Unterspezifikation in der Semantik Scope Semantics in Lexicalized Tree Adjoining Grammars in der emantik cope emantics in Lexicalized Tree Adjoining Grammars Laura Heinrich-Heine-Universität Düsseldorf Wintersemester 2011/2012 LTAG: The Formalism (1) Tree Adjoining Grammars (TAG): Tree-rewriting

More information

Parsing. Based on presentations from Chris Manning s course on Statistical Parsing (Stanford)

Parsing. Based on presentations from Chris Manning s course on Statistical Parsing (Stanford) Parsing Based on presentations from Chris Manning s course on Statistical Parsing (Stanford) S N VP V NP D N John hit the ball Levels of analysis Level Morphology/Lexical POS (morpho-synactic), WSD Elements

More information

Parsing with CFGs L445 / L545 / B659. Dept. of Linguistics, Indiana University Spring Parsing with CFGs. Direction of processing

Parsing with CFGs L445 / L545 / B659. Dept. of Linguistics, Indiana University Spring Parsing with CFGs. Direction of processing L445 / L545 / B659 Dept. of Linguistics, Indiana University Spring 2016 1 / 46 : Overview Input: a string Output: a (single) parse tree A useful step in the process of obtaining meaning We can view the

More information

Parsing with CFGs. Direction of processing. Top-down. Bottom-up. Left-corner parsing. Chart parsing CYK. Earley 1 / 46.

Parsing with CFGs. Direction of processing. Top-down. Bottom-up. Left-corner parsing. Chart parsing CYK. Earley 1 / 46. : Overview L545 Dept. of Linguistics, Indiana University Spring 2013 Input: a string Output: a (single) parse tree A useful step in the process of obtaining meaning We can view the problem as searching

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

Time Zones - KET Grammar

Time Zones - KET Grammar Inventory of grammatical areas Verbs Regular and irregular forms Pages 104-105 (Unit 1 Modals can (ability; requests; permission) could (ability; polite requests) Page 3 (Getting Started) Pages 45-47,

More information

Computationele grammatica

Computationele grammatica Computationele grammatica Docent: Paola Monachesi Contents First Last Prev Next Contents 1 Unbounded dependency constructions (UDCs)............... 3 2 Some data...............................................

More information

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims Introduction INTRODUCTION TO LOGIC 2 Syntax and Semantics of Propositional Logic Volker Halbach In what follows I look at some formal languages that are much simpler than English and define validity of

More information

Natural Language Processing CS Lecture 06. Razvan C. Bunescu School of Electrical Engineering and Computer Science

Natural Language Processing CS Lecture 06. Razvan C. Bunescu School of Electrical Engineering and Computer Science Natural Language Processing CS 6840 Lecture 06 Razvan C. Bunescu School of Electrical Engineering and Computer Science bunescu@ohio.edu Statistical Parsing Define a probabilistic model of syntax P(T S):

More information

Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only

Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only 1/53 Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only Larry Moss Indiana University Nordic Logic School August 7-11, 2017 2/53 An example that we ll see a few times Consider the

More information

2 A not-quite-argument for X-bar structure in noun phrases

2 A not-quite-argument for X-bar structure in noun phrases CAS LX 321 / GRS LX 621 Syntax: Introduction to Sentential Structure ovember 16, 2017 1 and pronouns (1) he linguists yodel. (2) We linguists yodel. (3) hey looked at us linguists. (4) hey looked at linguists.

More information

Predicates, Quantifiers and Nested Quantifiers

Predicates, Quantifiers and Nested Quantifiers Predicates, Quantifiers and Nested Quantifiers Predicates Recall the example of a non-proposition in our first presentation: 2x=1. Let us call this expression P(x). P(x) is not a proposition because x

More information

Artificial Intelligence

Artificial Intelligence CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 20-21 Natural Language Parsing Parsing of Sentences Are sentences flat linear structures? Why tree? Is

More information

Ling 130 Notes: Syntax and Semantics of Propositional Logic

Ling 130 Notes: Syntax and Semantics of Propositional Logic Ling 130 Notes: Syntax and Semantics of Propositional Logic Sophia A. Malamud January 21, 2011 1 Preliminaries. Goals: Motivate propositional logic syntax and inferencing. Feel comfortable manipulating

More information

cis32-ai lecture # 18 mon-3-apr-2006

cis32-ai lecture # 18 mon-3-apr-2006 cis32-ai lecture # 18 mon-3-apr-2006 today s topics: propositional logic cis32-spring2006-sklar-lec18 1 Introduction Weak (search-based) problem-solving does not scale to real problems. To succeed, problem

More information

Ch. 2: Phrase Structure Syntactic Structure (basic concepts) A tree diagram marks constituents hierarchically

Ch. 2: Phrase Structure Syntactic Structure (basic concepts) A tree diagram marks constituents hierarchically Ch. 2: Phrase Structure Syntactic Structure (basic concepts) A tree diagram marks constituents hierarchically NP S AUX VP Ali will V NP help D N the man A node is any point in the tree diagram and it can

More information

Propositional Logic: Part II - Syntax & Proofs 0-0

Propositional Logic: Part II - Syntax & Proofs 0-0 Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems

More information

An Inquisitive Formalization of Interrogative Inquiry

An Inquisitive Formalization of Interrogative Inquiry An Inquisitive Formalization of Interrogative Inquiry Yacin Hamami 1 Introduction and motivation The notion of interrogative inquiry refers to the process of knowledge-seeking by questioning [5, 6]. As

More information

CS460/626 : Natural Language Processing/Speech, NLP and the Web

CS460/626 : Natural Language Processing/Speech, NLP and the Web CS460/626 : Natural Language Processing/Speech, NLP and the Web Lecture 23: Binding Theory Pushpak Bhattacharyya CSE Dept., IIT Bombay 8 th Oct, 2012 Parsing Problem Semantics Part of Speech Tagging NLP

More information

Computational Models - Lecture 3

Computational Models - Lecture 3 Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models - Lecture 3 Equivalence of regular expressions and regular languages (lukewarm leftover

More information

LECTURER: BURCU CAN Spring

LECTURER: BURCU CAN Spring LECTURER: BURCU CAN 2017-2018 Spring Regular Language Hidden Markov Model (HMM) Context Free Language Context Sensitive Language Probabilistic Context Free Grammar (PCFG) Unrestricted Language PCFGs can

More information

Relational Reasoning in Natural Language

Relational Reasoning in Natural Language 1/67 Relational Reasoning in Natural Language Larry Moss ESSLLI 10 Course on Logics for Natural Language Inference August, 2010 Adding transitive verbs the work on R, R, and other systems is joint with

More information

(7) a. [ PP to John], Mary gave the book t [PP]. b. [ VP fix the car], I wonder whether she will t [VP].

(7) a. [ PP to John], Mary gave the book t [PP]. b. [ VP fix the car], I wonder whether she will t [VP]. CAS LX 522 Syntax I Fall 2000 September 18, 2000 Paul Hagstrom Week 2: Movement Movement Last time, we talked about subcategorization. (1) a. I can solve this problem. b. This problem, I can solve. (2)

More information

Computational Models - Lecture 4

Computational Models - Lecture 4 Computational Models - Lecture 4 Regular languages: The Myhill-Nerode Theorem Context-free Grammars Chomsky Normal Form Pumping Lemma for context free languages Non context-free languages: Examples Push

More information

Some binding facts. Binding in HPSG. The three basic principles. Binding theory of Chomsky

Some binding facts. Binding in HPSG. The three basic principles. Binding theory of Chomsky Some binding facts Binding in HPSG Binding theory has to do with constraining referentially dependent elements in terms of what is a possible antecedent, or binder. Introduction to HPSG June, 009 (1) John

More information

Compositionality and Syntactic Structure Marcus Kracht Department of Linguistics UCLA 3125 Campbell Hall 405 Hilgard Avenue Los Angeles, CA 90095

Compositionality and Syntactic Structure Marcus Kracht Department of Linguistics UCLA 3125 Campbell Hall 405 Hilgard Avenue Los Angeles, CA 90095 Compositionality and Syntactic Structure Marcus Kracht Department of Linguistics UCLA 3125 Campbell Hall 405 Hilgard Avenue Los Angeles, CA 90095 1543 kracht@humnet.ucla.edu 1. The Questions ➀ Why does

More information

Categorial Grammar. Larry Moss NASSLLI. Indiana University

Categorial Grammar. Larry Moss NASSLLI. Indiana University 1/37 Categorial Grammar Larry Moss Indiana University NASSLLI 2/37 Categorial Grammar (CG) CG is the tradition in grammar that is closest to the work that we ll do in this course. Reason: In CG, syntax

More information

CAS LX 522 Syntax I Fall 2000 October 10, 2000 Week 5: Case Theory and θ Theory. θ-theory continued

CAS LX 522 Syntax I Fall 2000 October 10, 2000 Week 5: Case Theory and θ Theory. θ-theory continued CAS LX 522 Syntax I Fall 2000 October 0, 2000 Paul Hagstrom Week 5: Case Theory and θ Theory θ-theory continued From last time: verbs have θ-roles (e.g., Agent, Theme, ) to assign, specified in the lexicon

More information

X-bar theory. X-bar :

X-bar theory. X-bar : is one of the greatest contributions of generative school in the filed of knowledge system. Besides linguistics, computer science is greatly indebted to Chomsky to have propounded the theory of x-bar.

More information

Lecture Notes on Inductive Definitions

Lecture Notes on Inductive Definitions Lecture Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 September 2, 2004 These supplementary notes review the notion of an inductive definition and

More information

Semantics and Generative Grammar. A Little Bit on Adverbs and Events

Semantics and Generative Grammar. A Little Bit on Adverbs and Events A Little Bit on Adverbs and Events 1. From Adjectives to Adverbs to Events We ve just developed a theory of the semantics of adjectives, under which they denote either functions of type (intersective

More information

Logic Background (1A) Young W. Lim 12/14/15

Logic Background (1A) Young W. Lim 12/14/15 Young W. Lim 12/14/15 Copyright (c) 2014-2015 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any

More information

Surface Reasoning Lecture 2: Logic and Grammar

Surface Reasoning Lecture 2: Logic and Grammar Surface Reasoning Lecture 2: Logic and Grammar Thomas Icard June 18-22, 2012 Thomas Icard: Surface Reasoning, Lecture 2: Logic and Grammar 1 Categorial Grammar Combinatory Categorial Grammar Lambek Calculus

More information

Andrew Carnie, Structural Relations. The mathematical properties of phrase structure trees

Andrew Carnie, Structural Relations. The mathematical properties of phrase structure trees Structural Relations The mathematical properties of phrase structure trees Important! Important! Even if you have trouble with the formal definitions, try to understand the INTUITIVE idea behind them.

More information

Movement-Generalized Minimalist Grammars

Movement-Generalized Minimalist Grammars Movet-Generalized Minimalist Grammars Thomas Graf tgraf@ucla.edu tgraf.bol.ucla.edu University of California, Los Angeles LACL 2012 July 2, 2012 Outline 1 Monadic Second-Order Logic (MSO) Talking About

More information

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)

More information

First Order Logic (1A) Young W. Lim 11/18/13

First Order Logic (1A) Young W. Lim 11/18/13 Copyright (c) 2013. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software

More information

This lecture covers Chapter 5 of HMU: Context-free Grammars

This lecture covers Chapter 5 of HMU: Context-free Grammars This lecture covers Chapter 5 of HMU: Context-free rammars (Context-free) rammars (Leftmost and Rightmost) Derivations Parse Trees An quivalence between Derivations and Parse Trees Ambiguity in rammars

More information

What we have done so far

What we have done so far What we have done so far DFAs and regular languages NFAs and their equivalence to DFAs Regular expressions. Regular expressions capture exactly regular languages: Construct a NFA from a regular expression.

More information

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic Propositional logic Logical connectives Rules for wffs Truth tables for the connectives Using Truth Tables to evaluate

More information

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning. 3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on

More information

Lecture 10: Predicate Logic and Its Language

Lecture 10: Predicate Logic and Its Language Discrete Mathematics (II) Spring 2017 Lecture 10: Predicate Logic and Its Language Lecturer: Yi Li 1 Predicates and Quantifiers In this action, we show you why a richer language should be introduced than

More information

Proving languages to be nonregular

Proving languages to be nonregular Proving languages to be nonregular We already know that there exist languages A Σ that are nonregular, for any choice of an alphabet Σ. This is because there are uncountably many languages in total and

More information

Proseminar on Semantic Theory Fall 2013 Ling 720 The Proper Treatment of Quantification in Ordinary English, Part 1: The Fragment of English

Proseminar on Semantic Theory Fall 2013 Ling 720 The Proper Treatment of Quantification in Ordinary English, Part 1: The Fragment of English The Proper Treatment of Quantification in Ordinary English, Part 1: The Fragment of English We will now explore the analysis of English that Montague puts forth in his seminal paper, PTQ. As we ve already

More information

Lecture Notes on Inductive Definitions

Lecture Notes on Inductive Definitions Lecture Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 August 28, 2003 These supplementary notes review the notion of an inductive definition and give

More information

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Propositional logic. First order logic. Alexander Clark. Autumn 2014 Propositional logic First order logic Alexander Clark Autumn 2014 Formal Logic Logical arguments are valid because of their form. Formal languages are devised to express exactly that relevant form and

More information

Classical Sentential Logic

Classical Sentential Logic II-1 2 Classical Sentential Logic 1. Introduction...2 2. Sentences and Connectives...2 3. Declarative Sentences and Truth-Values...3 4. Truth-Functional Connectives...4 5. Sentence Forms and rgument Forms...5

More information

CHAPTER THREE: RELATIONS AND FUNCTIONS

CHAPTER THREE: RELATIONS AND FUNCTIONS CHAPTER THREE: RELATIONS AND FUNCTIONS 1 Relations Intuitively, a relation is the sort of thing that either does or does not hold between certain things, e.g. the love relation holds between Kim and Sandy

More information

Natural Language Processing : Probabilistic Context Free Grammars. Updated 5/09

Natural Language Processing : Probabilistic Context Free Grammars. Updated 5/09 Natural Language Processing : Probabilistic Context Free Grammars Updated 5/09 Motivation N-gram models and HMM Tagging only allowed us to process sentences linearly. However, even simple sentences require

More information

Parsing with Context-Free Grammars

Parsing with Context-Free Grammars Parsing with Context-Free Grammars CS 585, Fall 2017 Introduction to Natural Language Processing http://people.cs.umass.edu/~brenocon/inlp2017 Brendan O Connor College of Information and Computer Sciences

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets

More information

HPSG: Binding Theory

HPSG: Binding Theory HPSG: Binding Theory Doug Arnold doug@essexacuk Introduction Binding Theory is to do with the syntactic restrictions on the distribution of referentially dependent items and their antecedents: reflexives/reciprocals

More information

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

More information

Context-Free Grammars and Languages. Reading: Chapter 5

Context-Free Grammars and Languages. Reading: Chapter 5 Context-Free Grammars and Languages Reading: Chapter 5 1 Context-Free Languages The class of context-free languages generalizes the class of regular languages, i.e., every regular language is a context-free

More information

Semantics and Generative Grammar. Pronouns and Variable Assignments 1. We ve seen that implicatures are crucially related to context.

Semantics and Generative Grammar. Pronouns and Variable Assignments 1. We ve seen that implicatures are crucially related to context. Pronouns and Variable Assignments 1 1. Putting this Unit in Context (1) What We ve Done So Far This Unit Expanded our semantic theory so that it includes (the beginnings of) a theory of how the presuppositions

More information

Sharpening the empirical claims of generative syntax through formalization

Sharpening the empirical claims of generative syntax through formalization Sharpening the empirical claims of generative syntax through formalization Tim Hunter University of Minnesota, Twin Cities NASSLLI, June 2014 Part 1: Grammars and cognitive hypotheses What is a grammar?

More information

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001 Logic Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001 Last Lecture Games Cont. α-β pruning Outline Games with chance, e.g. Backgammon Logical Agents and thewumpus World

More information

Theory of Computation

Theory of Computation Thomas Zeugmann Hokkaido University Laboratory for Algorithmics http://www-alg.ist.hokudai.ac.jp/ thomas/toc/ Lecture 10: CF, PDAs and Beyond Greibach Normal Form I We want to show that all context-free

More information

Languages. Languages. An Example Grammar. Grammars. Suppose we have an alphabet V. Then we can write:

Languages. Languages. An Example Grammar. Grammars. Suppose we have an alphabet V. Then we can write: Languages A language is a set (usually infinite) of strings, also known as sentences Each string consists of a sequence of symbols taken from some alphabet An alphabet, V, is a finite set of symbols, e.g.

More information

Supplementary Notes on Inductive Definitions

Supplementary Notes on Inductive Definitions Supplementary Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 August 29, 2002 These supplementary notes review the notion of an inductive definition

More information

Regular Expressions and Finite-State Automata. L545 Spring 2008

Regular Expressions and Finite-State Automata. L545 Spring 2008 Regular Expressions and Finite-State Automata L545 Spring 2008 Overview Finite-state technology is: Fast and efficient Useful for a variety of language tasks Three main topics we ll discuss: Regular Expressions

More information

FLAC Context-Free Grammars

FLAC Context-Free Grammars FLAC Context-Free Grammars Klaus Sutner Carnegie Mellon Universality Fall 2017 1 Generating Languages Properties of CFLs Generation vs. Recognition 3 Turing machines can be used to check membership in

More information

Ling 130 Notes: Predicate Logic and Natural Deduction

Ling 130 Notes: Predicate Logic and Natural Deduction Ling 130 Notes: Predicate Logic and Natural Deduction Sophia A. Malamud March 7, 2014 1 The syntax of Predicate (First-Order) Logic Besides keeping the connectives from Propositional Logic (PL), Predicate

More information

CS 712: Topics in NLP Linguistic Phrases and Statistical Phrases

CS 712: Topics in NLP Linguistic Phrases and Statistical Phrases CS 712: Topics in NLP Linguistic Phrases and Statistical Phrases Pushpak Bhattacharyya, CSE Department, IIT Bombay 18 March, 2013 (main text: Syntax by Adrew Carnie, Blackwell Publication, 2002) Domination

More information

CMPT-825 Natural Language Processing. Why are parsing algorithms important?

CMPT-825 Natural Language Processing. Why are parsing algorithms important? CMPT-825 Natural Language Processing Anoop Sarkar http://www.cs.sfu.ca/ anoop October 26, 2010 1/34 Why are parsing algorithms important? A linguistic theory is implemented in a formal system to generate

More information

SOME NOTES ON LOGIC AND QUANTIFIER RAISING

SOME NOTES ON LOGIC AND QUANTIFIER RAISING SOME NOTES ON LOGIC AND QUANTIFIER RAISING MARCUS KRACHT 1. Predicate Logic This note clarifies some of the concepts used in the lecture. I continue to use typewriter fonts for actual symbols; this saves

More information

Unification Grammars and Off-Line Parsability. Efrat Jaeger

Unification Grammars and Off-Line Parsability. Efrat Jaeger Unification Grammars and Off-Line Parsability Efrat Jaeger October 1, 2002 Unification Grammars and Off-Line Parsability Research Thesis Submitted in partial fulfillment of the requirements for the degree

More information

Suppose h maps number and variables to ɛ, and opening parenthesis to 0 and closing parenthesis

Suppose h maps number and variables to ɛ, and opening parenthesis to 0 and closing parenthesis 1 Introduction Parenthesis Matching Problem Describe the set of arithmetic expressions with correctly matched parenthesis. Arithmetic expressions with correctly matched parenthesis cannot be described

More information

Control and Tough- Movement

Control and Tough- Movement Department of Linguistics Ohio State University February 2, 2012 Control (1/5) We saw that PRO is used for the unrealized subject of nonfinite verbals and predicatives where the subject plays a semantic

More information

1. Background. Task: Determine whether a given string of words is a grammatical (well-formed) sentence of language L i or not.

1. Background. Task: Determine whether a given string of words is a grammatical (well-formed) sentence of language L i or not. Constraints in Syntax [1] Phrase Structure and Derivations Düsseldorf LSA/DGfS Summerschool 2002 Gereon Müller (IDS Mannheim) gereon.mueller@ids-mannheim.de 1. Background Task: Determine whether a given

More information

The semantics of propositional logic

The semantics of propositional logic The semantics of propositional logic Readings: Sections 1.3 and 1.4 of Huth and Ryan. In this module, we will nail down the formal definition of a logical formula, and describe the semantics of propositional

More information

Lecture 2: Syntax. January 24, 2018

Lecture 2: Syntax. January 24, 2018 Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified

More information

Classical Propositional Logic

Classical Propositional Logic The Language of A Henkin-style Proof for Natural Deduction January 16, 2013 The Language of A Henkin-style Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,

More information

CS460/626 : Natural Language

CS460/626 : Natural Language CS460/626 : Natural Language Processing/Speech, NLP and the Web (Lecture 23, 24 Parsing Algorithms; Parsing in case of Ambiguity; Probabilistic Parsing) Pushpak Bhattacharyya CSE Dept., IIT Bombay 8 th,

More information

Proseminar on Semantic Theory Fall 2010 Ling 720. Remko Scha (1981/1984): Distributive, Collective and Cumulative Quantification

Proseminar on Semantic Theory Fall 2010 Ling 720. Remko Scha (1981/1984): Distributive, Collective and Cumulative Quantification 1. Introduction Remko Scha (1981/1984): Distributive, Collective and Cumulative Quantification (1) The Importance of Scha (1981/1984) The first modern work on plurals (Landman 2000) There are many ideas

More information

Tree Adjoining Grammars

Tree Adjoining Grammars Tree Adjoining Grammars TAG: Parsing and formal properties Laura Kallmeyer & Benjamin Burkhardt HHU Düsseldorf WS 2017/2018 1 / 36 Outline 1 Parsing as deduction 2 CYK for TAG 3 Closure properties of TALs

More information

Logic. proof and truth syntacs and semantics. Peter Antal

Logic. proof and truth syntacs and semantics. Peter Antal Logic proof and truth syntacs and semantics Peter Antal antal@mit.bme.hu 10/9/2015 1 Knowledge-based agents Wumpus world Logic in general Syntacs transformational grammars Semantics Truth, meaning, models

More information

Truth-Functional Logic

Truth-Functional Logic Truth-Functional Logic Syntax Every atomic sentence (A, B, C, ) is a sentence and are sentences With ϕ a sentence, the negation ϕ is a sentence With ϕ and ψ sentences, the conjunction ϕ ψ is a sentence

More information

Control and Tough- Movement

Control and Tough- Movement Control and Tough- Movement Carl Pollard February 2, 2012 Control (1/5) We saw that PRO is used for the unrealized subject of nonfinite verbals and predicatives where the subject plays a semantic role

More information

Computational Models - Lecture 4 1

Computational Models - Lecture 4 1 Computational Models - Lecture 4 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. April 3/8, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

1 Rules in a Feature Grammar

1 Rules in a Feature Grammar 27 Feature Grammars and Unification Drew McDermott drew.mcdermott@yale.edu 2015-11-20, 11-30, 2016-10-28 Yale CS470/570 1 Rules in a Feature Grammar Grammar rules look like this example (using Shieber

More information

Consequence Relations and Natural Deduction

Consequence Relations and Natural Deduction Consequence Relations and Natural Deduction Joshua D. Guttman Worcester Polytechnic Institute September 9, 2010 Contents 1 Consequence Relations 1 2 A Derivation System for Natural Deduction 3 3 Derivations

More information

Semantics and Generative Grammar. The Semantics of Adjectival Modification 1. (1) Our Current Assumptions Regarding Adjectives and Common Ns

Semantics and Generative Grammar. The Semantics of Adjectival Modification 1. (1) Our Current Assumptions Regarding Adjectives and Common Ns The Semantics of Adjectival Modification 1 (1) Our Current Assumptions Regarding Adjectives and Common Ns a. Both adjectives and common nouns denote functions of type (i) [[ male ]] = [ λx : x D

More information

Introduction to Kleene Algebras

Introduction to Kleene Algebras Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)

More information

Spring 2017 Ling 620. An Introduction to the Semantics of Tense 1

Spring 2017 Ling 620. An Introduction to the Semantics of Tense 1 1. Introducing Evaluation Times An Introduction to the Semantics of Tense 1 (1) Obvious, Fundamental Fact about Sentences of English The truth of some sentences (of English) depends upon the time they

More information

Context-Free Parsing: CKY & Earley Algorithms and Probabilistic Parsing

Context-Free Parsing: CKY & Earley Algorithms and Probabilistic Parsing Context-Free Parsing: CKY & Earley Algorithms and Probabilistic Parsing Natural Language Processing! CS 6120 Spring 2014! Northeastern University!! David Smith! with some slides from Jason Eisner & Andrew

More information

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

Grammar formalisms Tree Adjoining Grammar: Formal Properties, Parsing. Part I. Formal Properties of TAG. Outline: Formal Properties of TAG

Grammar formalisms Tree Adjoining Grammar: Formal Properties, Parsing. Part I. Formal Properties of TAG. Outline: Formal Properties of TAG Grammar formalisms Tree Adjoining Grammar: Formal Properties, Parsing Laura Kallmeyer, Timm Lichte, Wolfgang Maier Universität Tübingen Part I Formal Properties of TAG 16.05.2007 und 21.05.2007 TAG Parsing

More information

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies Valentin Stockholm University September 2016 Propositions Proposition:

More information

Complexity of Natural Languages Mildly-context sensitivity T1 languages

Complexity of Natural Languages Mildly-context sensitivity T1 languages Complexity of Natural Languages Mildly-context sensitivity T1 languages Introduction to Formal Language Theory day 4 Wiebke Petersen & Kata Balogh Heinrich-Heine-Universität NASSLLI 2014 Petersen & Balogh

More information

Constituency. Doug Arnold

Constituency. Doug Arnold Constituency Doug Arnold doug@essex.ac.uk Spose we have a string... xyz..., how can we establish whether xyz is a constituent (i.e. syntactic unit); i.e. whether the representation of... xyz... should

More information