LING 388: Language and Computers Sandiway Fong Lecture 15.

Slides:



Advertisements
Similar presentations
LING 388: Language and Computers Sandiway Fong Lecture 23.
Advertisements

Review of Homework 4 November 20, Exercise 1 (A) 1 pt Modify the DCG to accept the omission of the complementizer that for object relative clauses.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
LING/C SC/PSYC 438/538 Lecture 22 Sandiway Fong 1.
LING 388: Language and Computers Sandiway Fong Lecture 2.
Linguistic Theory Lecture 7 About Nothing. Nothing in grammar Language often contains irregular paradigms where one or more expected forms are absent.
1 Introduction to Linguistics II Ling 2-121C, group b Lecture 4 Eleni Miltsakaki AUTH Spring 2006.
Fall 2008Programming Development Techniques 1 Topic 9 Symbol Manipulation Generating English Sentences Section This is an additional example to symbolic.
LING 364: Introduction to Formal Semantics Lecture 8 February 7th.
Natural Language Processing - Feature Structures - Feature Structures and Unification.
LING 388: Language and Computers Sandiway Fong Lecture 9: 9/22.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 7: 9/12.
LING 364: Introduction to Formal Semantics Lecture 10 February 14th.
LING 364: Introduction to Formal Semantics Lecture 9 February 9th.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 9: 9/21.
LING 388 Language and Computers Lecture 14 10/16/03 Sandiway FONG.
LING 364: Introduction to Formal Semantics Lecture 11 February 16th.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
LING 388 Language and Computers Take-Home Final Examination 12/9/03 Sandiway FONG.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
LING 364: Introduction to Formal Semantics Lecture 16 March 7th.
LING 388 Language and Computers Lecture 18 10/30/03 Sandiway FONG.
Computational Intelligence 696i Language Lecture 4 Sandiway Fong.
Syntax LING October 11, 2006 Joshua Tauberer.
LING 364: Introduction to Formal Semantics Lecture 13 February 23rd.
1 Introduction: syntax and semantics Syntax: a formal description of the structure of programs in a given language. Semantics: a formal description of.
LING 364: Introduction to Formal Semantics Lecture 5 January 26th.
LING 388: Language and Computers Sandiway Fong Lecture 13: 10/10.
LING 388 Language and Computers Lecture 15 10/21/03 Sandiway FONG.
LING 388: Language and Computers Sandiway Fong 10/4 Lecture 12.
Subject Adjective Clauses & Adjective Phrases
Linguistic Theory Lecture 3 Movement. A brief history of movement Movements as ‘special rules’ proposed to capture facts that phrase structure rules cannot.
LING 388: Language and Computers Sandiway Fong Lecture 11.
Context Free Grammars Reading: Chap 12-13, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Paul Tarau, based on Rada.
1 LIN 1310B Introduction to Linguistics Prof: Nikolay Slavkov TA: Qinghua Tang CLASS 14, Feb 27, 2007.
LING 388: Language and Computers Sandiway Fong Lecture 17.
ITEC 380 Organization of programming languages Lecture 2 – Grammar / Language capabilities.
LING 388: Language and Computers Sandiway Fong Lecture 7.
LING 388: Language and Computers Sandiway Fong Lecture 3.
LING 388: Language and Computers Sandiway Fong Lecture 18.
Introduction to Linguistics Ms. Suha Jawabreh Lecture 18.
NLP. Introduction to NLP Is language more than just a “bag of words”? Grammatical rules apply to categories and groups of words, not individual words.
LING 388: Language and Computers Sandiway Fong Lecture 10.
LING 388: Language and Computers Sandiway Fong Lecture 19.
Today Phrase structure rules, trees Constituents Recursion Conjunction
SYNTAX 6 ON-LINE PROCESSING DAY 35 – NOV 18, 2013 Brain & Language LING NSCI Harry Howard Tulane University.
October 2004CSA4050: Semantics III1 CSA4050: Advanced Topics in NLP Semantics III Quantified Sentences.
Context Free Grammars Reading: Chap 9, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Rada Mihalcea.
LING 388: Language and Computers Sandiway Fong Lecture 13.
LING/C SC/PSYC 438/538 Lecture 26 Sandiway Fong. Administrivia 538 Presentations – Send me your choices if you haven’t already Thanksgiving Holiday –
Notes on Pinker ch.7 Grammar, parsing, meaning. What is a grammar? A grammar is a code or function that is a database specifying what kind of sounds correspond.
LING 388: Language and Computers Sandiway Fong Lecture 12.
Rules, Movement, Ambiguity
CSA2050 Introduction to Computational Linguistics Parsing I.
GRAMMARS & PARSING Lecture 8 CS2110 – Spring If you are going to form a group for A2, please do it before tomorrow (Friday) noon.
Linguistic Theory Lecture 5 Filters. The Structure of the Grammar 1960s (Standard Theory) LexiconPhrase Structure Rules Deep Structure Transformations.
LING 388: Language and Computers Sandiway Fong Lecture 21.
LING 388: Language and Computers Sandiway Fong Lecture 25.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
LING 388: Language and Computers Sandiway Fong Lecture 16.
SYNTAX 1 NOV 9, 2015 – DAY 31 Brain & Language LING NSCI Fall 2015.
1 Some English Constructions Transformational Framework October 2, 2012 Lecture 7.
1 Chapter 4 Syntax Part III. 2 The infinity of language pp The number of sentences in a language is infinite. 2. The length of sentences is.
LING 388: Language and Computers Sandiway Fong Lecture 20.
Finite State LanguagesCSE Intro to Cognitive Science1 The Computational Modeling of Language: Finite State Languages Lecture I: Slides 1-21 Lecture.
Computational Intelligence 696i Language Homework 1 Answers Sandiway Fong.
Week 3. Clauses and Trees English Syntax. Trees and constituency A sentence has a hierarchical structure Constituents can have constituents of their own.
Simple Sentences.
Part I: Basics and Constituency
LING/C SC/PSYC 438/538 Lecture 24 Sandiway Fong.
Presentation transcript:

LING 388: Language and Computers Sandiway Fong Lecture 15

Homework 5 Other kinds of recursion, e.g. – Relative clauses the cheese that the rat ate the cheese that the rat that the cat saw ate the cheese that the rat that the cat that the dog chased saw ate these are not complete sentences, but just noun phrases (NPs)

Homework 5 Example: – the cheese that the rat ate 1.np(np(np(D,N),SBAR)) --> det(D), nn(N), sbar(SBAR). 2.nn(nn(rat)) --> [rat]. 3.nn(nn(cheese)) --> [cheese]. 4.v(v(ate)) --> [ate]. 5.np(np(0)) --> []. Alternatively: 5. vp(vp(V)) --> v(V).

Homework 5 Example: – the cheese that the rat that the cat saw ate 1.nn(nn(cat)) --> [cat]. 2.v(v(saw)) --> [saw].

Homework 5 Example: – the cheese that the rat that the cat saw ate vp(vp(V)) --> v(V). version vp(vp(V)) --> v(V). version

Homework 5 review Example: – the cheese that the rat that the cat that the dog chased saw ate 1.nn(nn(dog)) --> [dog]. 2.v(v(chased)) --> [chased].

Subject Relative Clauses Subject relative clauses (not center-embedded) – the cat that saw the rat that saw the cheese that … – [ NP the cat [ SBAR that [ S saw [ NP the rat [ SBAR that [ S saw [ NP the cheese that … ]]]]]]] – the rat that Ø saw the cheese – the cat that Ø saw the rat that Ø saw the cheese – the dog that Ø saw the cat that Ø saw the rat that Ø saw the cheese

Subject Relative Clauses Subject relative clauses (not center-embedded) – the rat that Ø saw the cheese Advantage of the empty category rule np(np(0)) --> []. over the vp(vp(V)) --> v(V). version (However, there are disadvantages too…) Advantage of the empty category rule np(np(0)) --> []. over the vp(vp(V)) --> v(V). version (However, there are disadvantages too…)

Subject Relative Clauses Subject relative clauses (not center-embedded) – the cat that Ø saw the rat that Ø saw the cheese

Subject Relative Clauses Subject relative clauses (not center-embedded) – the dog that Ø saw the cat that Ø saw the rat that Ø saw the cheese

Subject Relative Clauses Subject relative clauses (not center- embedded) – the dog that Ø saw the cat that Ø saw the rat that Ø saw the cheese

The empty category rule A disadvantage of the grammar rule np(np(0)) --> [] : Example: – *the rat that saw freely permits the simultaneous omission of the subject and the object *the rat that Ø saw Ø freely permits the simultaneous omission of the subject and the object *the rat that Ø saw Ø

The empty category rule Rule is too permissive, let’s verify that it permits ungrammatical sentences such as: – John saw Mary – Ø saw Mary – John saw Ø – Ø saw Ø

Complexity and Comprehension Subject and Object Relative Clauses From easy to hard to comprehend for humans? 1.Subject relative + subject relative 2.Subject relative + object relative 3.Object relative + subject relative 4.Object relative + object relative For a computer, no difference…

Subject and Object Relative Clauses Subject relative + subject relative – the cat that Ø chased the dog that Ø ate the cheese saw the rat

Subject and Object Relative Clauses Subject relative + object relative – the cat that Ø saw the rat that the dog chased Ø ate the cheese

Subject and Object Relative Clauses Object relative + subject relative – the cat that the dog that Ø saw the rat chased Ø ate the cheese

Subject and Object Relative Clauses Object relative + object relative – the cat that the dog that the rat saw Ø chased Ø ate the cheese

Class Exercise 1 Grammar rule: np(np(0)) --> []. permits subjects and objects to be freely omitted Subject relative clauses – the rat that Ø saw the cheese – the cat that Ø saw the rat that Ø saw the cheese – the dog that Ø saw the cat that Ø saw the rat that Ø saw the cheese Object relative clauses – the cheese that the rat ate Ø – the cheese that the rat that the cat saw Ø ate Ø – the cheese that the rat that the cat that the dog chased Ø saw Ø ate Ø

Class Exercise 1 Rule is too permissive, verify that it permits ungrammatical sentences: – John saw Mary – Ø saw Mary – John saw Ø – Ø saw Ø Thus it also permits: the cheese that the rat ate Ø the cheese that Ø ate Ø the rat that Ø saw the cheese the rat that Ø saw Ø the cheese that the rat ate the cheese the rat that the rat saw the cheese

Class Exercise 2 Let’s modify (or restrict) the grammar so that subject relative clauses force an empty subject only the rat that Ø saw the cheese the rat that Ø saw Ø the rat that the rat saw the cheese idea: make this sbar special to subject relative clauses, i.e. force subject NP to be empty and object NP to be overt idea: make this sbar special to subject relative clauses, i.e. force subject NP to be empty and object NP to be overt

Class Exercise 2 First, delete the overgenerating rule… i.e. delete the empty category rule from the grammar. We are left with only rules for generating overt NPs

Class Exercise 2 Grammar rules involved: (Rename rule)

Class Exercise 2 Do copy and rename: Rename nonterminal (S)

Class Exercise 2 Do copy and rename: Rename nonterminal (sbar)

Class Exercise 2 Verify subject relative clauses force an empty subject only the rat that Ø saw the cheese the rat that Ø saw Ø the rat that the rat saw the cheese