Outline of today s lecture

Similar documents
Outline of today s lecture

Ling 201 Syntax 1. Jirka Hana April 10, 2006

INF5820 Natural Language Processing - NLP. H2009 Jan Tore Lønning jtl@ifi.uio.no

L130: Chapter 5d. Dr. Shannon Bischoff. Dr. Shannon Bischoff () L130: Chapter 5d 1 / 25

The parts of speech: the basic labels

Semantic analysis of text and speech

Constraints in Phrase Structure Grammar

CS4025: Pragmatics. Resolving referring Expressions Interpreting intention in dialogue Conversational Implicature

Paraphrasing controlled English texts

Parsing Technology and its role in Legacy Modernization. A Metaware White Paper

Introduction to formal semantics -

The Syntax of Predicate Logic

FUNDAMENTALS OF ARTIFICIAL INTELLIGENCE KNOWLEDGE REPRESENTATION AND NETWORKED SCHEMES

CINTIL-PropBank. CINTIL-PropBank Sub-corpus id Sentences Tokens Domain Sentences for regression atsts 779 5,654 Test

Syntax: Phrases. 1. The phrase

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

Constituency. The basic units of sentence structure

Predicate Logic. For example, consider the following argument:

Semantics and Generative Grammar. Quantificational DPs, Part 3: Covert Movement vs. Type Shifting 1

Syntactic Theory. Background and Transformational Grammar. Dr. Dan Flickinger & PD Dr. Valia Kordoni

Learning Translation Rules from Bilingual English Filipino Corpus


Artificial Intelligence Exam DT2001 / DT2006 Ordinarie tentamen

Parent Help Booklet. Level 3

The Role of Sentence Structure in Recognizing Textual Entailment

A Chart Parsing implementation in Answer Set Programming

Non-nominal Which-Relatives

I have eaten. The plums that were in the ice box

Presented to The Federal Big Data Working Group Meetup On 07 June 2014 By Chuck Rehberg, CTO Semantic Insights a Division of Trigent Software

Lecture 9. Phrases: Subject/Predicate. English 3318: Studies in English Grammar. Dr. Svetlana Nuernberg

2. SEMANTIC RELATIONS

How To Answer The Question Of If There Is A God Or Not In The World

Noam Chomsky: Aspects of the Theory of Syntax notes

What s in a Lexicon. The Lexicon. Lexicon vs. Dictionary. What kind of Information should a Lexicon contain?

The compositional semantics of same

IP PATTERNS OF MOVEMENTS IN VSO TYPOLOGY: THE CASE OF ARABIC

Multisensory Grammar Online

Knowledge Representation and Question Answering

Syntactic Theory on Swedish

Rethinking the relationship between transitive and intransitive verbs

Sentence Semantics. General Linguistics Jennifer Spenader, February 2006 (Most slides: Petra Hendriks)

A large annotated corpus of entailments and contradictions

Using, Mentioning and Quoting: A Reply to Saka 1 Herman Cappelen and Ernie Lepore

UNIVERSITY COLLEGE LONDON EXAMINATION FOR INTERNAL STUDENTS

Chapter 13, Sections Auxiliary Verbs CSLI Publications

Semantic Analysis: Types and Type Checking

6-1. Process Modeling

2. The Language of First-order Logic

Overview of the TACITUS Project

Understanding English Grammar: A Linguistic Introduction

Predicate Logic Review

Quantifier Scope in Formal Linguistics

Statistical Machine Translation

Likewise, we have contradictions: formulas that can only be false, e.g. (p p).

Course: Model, Learning, and Inference: Lecture 5

Chapter 2 Phrases and Clauses

Level 1 Teacher s Manual

The treatment of noun phrase queries in a natural language database access system

Surface Realisation using Tree Adjoining Grammar. Application to Computer Aided Language Learning

Avoiding Run-On Sentences, Comma Splices, and Fragments

Chapter 3 Growing with Verbs 77

POS Tagsets and POS Tagging. Definition. Tokenization. Tagset Design. Automatic POS Tagging Bigram tagging. Maximum Likelihood Estimation 1 / 23

Movement and Binding

If an English sentence is ambiguous, it may allow for more than one adequate transcription.

Slot Grammars. Michael C. McCord. Computer Science Department University of Kentucky Lexington, Kentucky 40506

Application of Natural Language Interface to a Machine Translation Problem

Cross-linguistic differences in the interpretation of sentences with more than one QP: German (Frey 1993) and Hungarian (É Kiss 1991)

Unit One Basic Definitions& Common Errors

SYNTAX: THE ANALYSIS OF SENTENCE STRUCTURE

SENTENCE PUZZLE RACE. by Zoltan Golcz

Artificial Intelligence

Comprendium Translator System Overview

Comma checking in Danish Daniel Hardt Copenhagen Business School & Villanova University

Information extraction from online XML-encoded documents

Phase 2 of the D4 Project. Helmut Schmid and Sabine Schulte im Walde

CHAPTER 7 GENERAL PROOF SYSTEMS

Introduction. Philipp Koehn. 28 January 2016

Chapter 3 - Growing with Verbs. A verb that helps another verb is called a helping verb. It comes before the main verb to tell about the action.

Meaning and communication, swearing and silence

Predicate logic Proofs Artificial intelligence. Predicate logic. SET07106 Mathematics for Software Engineering

Clauses and Phrases. How to know them when you see them! How they work to make more complex sentences!

Year 7. Grammar booklet 3 and tasks Sentences, phrases and clauses

The Book of Grammar Lesson Six. Mr. McBride AP Language and Composition

English prepositional passive constructions

CS510 Software Engineering

D2.4: Two trained semantic decoders for the Appointment Scheduling task

CS 533: Natural Language. Word Prediction

Fry Phrases Set 1. TeacherHelpForParents.com help for all areas of your child s education

Eligibility: Essay Instructions: summarize analyze print

PREP-009 COURSE SYLLABUS FOR WRITTEN COMMUNICATIONS

Grammar Presentation: The Sentence

Learning the Question & Answer Flows

Livingston Public Schools Scope and Sequence K 6 Grammar and Mechanics

Morphology. Morphology is the study of word formation, of the structure of words. 1. some words can be divided into parts which still have meaning

3. Mathematical Induction

English Appendix 2: Vocabulary, grammar and punctuation

Sample only Oxford University Press ANZ

LINGUISTIC PROCESSING IN THE ATLAS PROJECT

A Beautiful Four Days in Berlin Takafumi Maekawa (Ryukoku University)

Transcription:

Outline of today s lecture Logical form and lambda calculus Simple semantics in feature structures Dependency structures Inference Recognising Textual Entailment task

Logical form and lambda calculus Sentence meaning as logical form Kitty chased Rover. Rover was chased by Kitty. Logical form (simplified!): chase (k, r) k and r are constants (Kitty and Rover), chase is the predicate corresponding to chase. Sentence structure conveys some meaning: obtained by syntactic representation plus rules of semantic composition. Principle of Compositionality: meaning of each whole phrase derivable from meaning of its parts.

Logical form and lambda calculus Semantic composition rules are non-trivial Ordinary pronouns contribute to the semantics: It barked. x[bark (x) PRON(x)] Pleonastic pronouns don t: It rained. rain Similar syntactic structures may have different meanings. Different syntactic structures may have the same meaning: Kim seems to sleep. It seems that Kim sleeps. Differences in presentation but not in truth conditions.

Logical form and lambda calculus Lambda calculus and composition One semantic composition rule per syntax rule. S -> NP VP VP (NP ) Rover barks: VP bark is λx[bark (x)] NP Rover is r λx[bark (x)](r) = bark (r)

Logical form and lambda calculus Transitive verbs Kitty chases Rover Transitive verbs: two arguments (NOTE the order) λx[λy[chase (y, x)]] VP -> Vtrans NP Vtrans (NP ) λxλy[chase (y, x)](r) = λy[chase (y, r)] S -> NP VP VP (NP ) λy[chase (y, r)](k) = chase (k, r)]

Logical form and lambda calculus Grammar fragment using lambda calculus S -> NP VP VP (NP ) VP -> Vtrans NP Vtrans (NP ) VP -> Vintrans Vintrans Vtrans -> chases λxλy[chase (y, x)] Vintrans -> barks λz[bark (z)] Vintrans -> sleeps λw[sleep (w)] NP -> Kitty k

Logical form and lambda calculus Beyond toy examples... Use first order logic where possible (e.g., event variables). However, First Order Predicate Calculus (FOPC) is sometimes inadequate: e.g., most, may, believe. Quantifier scoping multiplies analyses: Every cat chased some dog: x[cat (x) = y[dog (y) chase (x, y)]] y[dog (y) x[cat (x) = chase (x, y)]] Often no straightforward logical analysis e.g., Bare plurals such as Ducks lay eggs. Non-compositional phrases (multiword expressions): e.g., red tape meaning bureaucracy.

Logical form and lambda calculus Event variables Allow first order treatment of adverbs and PPs modifying verbs by reifying the event. Rover barked. instead of bark (r) we have e[bark (e, r)] Rover barked loudly. e[bark (e, r) loud (e)] There was an event of Rover barking and that event was loud.

Simple semantics in feature structures Simple compositional semantics in feature structures An alternative to lambda calculus Semantics is built up along with syntax Subcategorization slot filling instantiates syntax Formally equivalent to logical representations (below: predicate calculus with no quantifiers) Alternative FS encodings possible Example they like fish: with semantics pron(x) (like_v(x, y) fish_n(y))

Simple semantics in feature structures Feature structure encoding of semantics PRED ARG1 ARG2 and PRED ARG1 1 PRED ARG1 ARG2 pron and PRED ARG1 1 ARG2 2 PRED ARG1 2 like_v fish_n pron(x) (like_v(x, y) fish_n(y))

Simple semantics in feature structures Noun entry fish HEAD OBJ SUBJ SEM CAT n AGR [ ] fld fld INDEX 1 PRED fish_n ARG1 1 Corresponds to fish(x) where the INDEX points to the characteristic variable of the noun (that is x). The INDEX is unambiguous here, but e.g., picture(x, y) sheep(y) picture of sheep

Simple semantics in feature structures Noun entry fish HEAD OBJ SUBJ SEM CAT n AGR [ ] fld fld INDEX 1 PRED fish_n ARG1 1 Corresponds to fish(x) where the INDEX points to the characteristic variable of the noun (that is x). The INDEX is unambiguous here, but e.g., picture(x, y) sheep(y) picture of sheep

Simple semantics in feature structures Verb entry like HEAD OBJ SUBJ SEM CAT AGR HEAD OBJ SEM HEAD SEM PRED v pl [ ] CAT n fld [ ] INDEX 2 [ ] CAT n [ ] INDEX 1 like_v ARG1 1 ARG2 2

Simple semantics in feature structures Verb-object rule HEAD 1 OBJ fld SUBJ 3 SEM PRED ARG1 4 ARG2 5 and HEAD 1 OBJ 2 SUBJ 3 SEM 4, 2 OBJ SEM 5 fld As in Lecture 5: object of the verb (DTR2) fills the OBJ slot New: semantics on the mother is the and of the semantics of the dtrs

Dependency structures Dependency structure Alternative to syntax trees and to logical representation for who does what to whom. Relate words to each other via labelled directed arcs (dependencies). May be syntactic or semantic. some big angry dogs bark loudly MOD SUBJ MOD MOD DET

Dependency structures Semantic dependencies _some_q _big_a _angry_a _dog_n _bark_v _loud_a ARG1/EQ ARG1/NEQ ARG1/EQ ARG1/EQ RSTR/H Equivalent to: _some_q (x, _big_a(e1,x) _angry_a(e2,x) _dog_n(x), _bark_v(e3,x) _loud_a(e4,e3)) which in this case can be converted into FOPC: x [ _big_a(e1,x) _angry_a(e2,x) _dog_n(x) _bark_v(e3,x) _loud_a(e4,e3) ]

Inference Natural language inference Inference on a knowledge base: convert natural language expression to KB expression, valid inference according to KB. + Precise + Formally verifiable + Disambiguation using KB state - Limited domain, requires KB to be formally encodable Language-based inference: does one utterance follow from another? + Unlimited domain +/- Human judgement -/+ Approximate/imprecise Both approaches may use logical form of utterance.

Inference Lexical meaning and meaning postulates Some inferences validated on logical representation directly, most require lexical meaning. meaning postulates: e.g., x[bachelor (x) man (x) unmarried (x)] usable with compositional semantics and theorem provers e.g. from Kim is a bachelor, we can construct the LF bachelor (Kim) and then deduce unmarried (Kim) Problematic in general, OK for narrow domains or micro-worlds.

Recognising Textual Entailment task Recognising Textual Entailment (RTE) shared tasks T: The girl was found in Drummondville earlier this month. H: The girl was discovered in Drummondville. DATA: pairs of text (T) and hypothesis (H). H may or may not follow from T. TASK: label TRUE (if follows) or FALSE (if doesn t follow), according to human judgements.

Recognising Textual Entailment task RTE using logical forms T sentence has logical form T, H sentence has logical form H If T = H conclude TRUE, otherwise conclude FALSE. T The girl was found in Drummondville earlier this month. T x, u, e[girl (x) find (e, u, x) in (e, Drummondville) earlier-this-month (e)] H The girl was discovered in Drummondville. H x, u, e[girl (x) discover (e, u, x) in (e, Drummondville)] MP [find (x, y, z) = discover (x, y, z)] So T = H and we conclude TRUE

Recognising Textual Entailment task More complex examples T: Four Venezuelan firefighters who were traveling to a training course in Texas were killed when their sport utility vehicle drifted onto the shoulder of a highway and struck a parked truck. H: Four firefighters were killed in a car accident. Systems using logical inference are not robust to missing information: simpler techniques can be effective (partly because of choice of hypotheses in RTE).

Recognising Textual Entailment task More examples T: Clinton s book is not a big seller here. H: Clinton s book is a big seller. T: After the war the city was briefly occupied by the Allies and then was returned to the Dutch. H: After the war, the city was returned to the Dutch. T: Lyon is actually the gastronomic capital of France. H: Lyon is the capital of France.

Recognising Textual Entailment task Next time... Lexical semantics and semantic relations Word sense ambiguity