Bringing machine learning & compositional semantics together: central concepts

Similar documents
Harvard CS 121 and CSCI E-207 Lecture 9: Regular Languages Wrap-Up, Context-Free Grammars

LEARNING COMPOSITIONALITY

Introduction to Semantic Parsing with CCG

Deep Learning For Mathematical Functions

Topics in Lexical-Functional Grammar. Ronald M. Kaplan and Mary Dalrymple. Xerox PARC. August 1995

S NP VP 0.9 S VP 0.1 VP V NP 0.5 VP V 0.1 VP V PP 0.1 NP NP NP 0.1 NP NP PP 0.2 NP N 0.7 PP P NP 1.0 VP NP PP 1.0. N people 0.

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

Introduction to Semantics. The Formalization of Meaning 1

Learning Goals of CS245 Logic and Computation

Maschinelle Sprachverarbeitung

Maschinelle Sprachverarbeitung

Lecture 7. Logic. Section1: Statement Logic.

Propositional Logic and Semantics

A Logic Primer. Stavros Tripakis University of California, Berkeley. Stavros Tripakis (UC Berkeley) EE 144/244, Fall 2014 A Logic Primer 1 / 35

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

A Logic Primer. Stavros Tripakis University of California, Berkeley

CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents

Knowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents

Algorithms for Syntax-Aware Statistical Machine Translation

A DOP Model for LFG. Rens Bod and Ronald Kaplan. Kathrin Spreyer Data-Oriented Parsing, 14 June 2005

Hidden Markov Models, I. Examples. Steven R. Dunbar. Toy Models. Standard Mathematical Models. Realistic Hidden Markov Models.

Model-Theory of Property Grammars with Features

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

The Lambek-Grishin calculus for unary connectives

Continuations in Type Logical Grammar. Grafting Trees: (with Chris Barker, UCSD) NJPLS, 27 February Harvard University

Spatial Role Labeling CS365 Course Project

Compiling Techniques

Logical Agents (I) Instructor: Tsung-Che Chiang

Categorial Grammar. Larry Moss NASSLLI. Indiana University

C SC 620 Advanced Topics in Natural Language Processing. Lecture 21 4/13

Computational Models - Lecture 4 1

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP

Sharpening the empirical claims of generative syntax through formalization

Logic Background (1A) Young W. Lim 5/14/18

Sharpening the empirical claims of generative syntax through formalization

A Polynomial Time Algorithm for Parsing with the Bounded Order Lambek Calculus

Lecture 5: Semantic Parsing, CCGs, and Structured Classification

Penn Treebank Parsing. Advanced Topics in Language Processing Stephen Clark

Artificial Intelligence

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

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

A Syntax-based Statistical Machine Translation Model. Alexander Friedl, Georg Teichtmeister

Latent Variable Models in NLP

Reflexives and non-fregean quantifiers

Predicate Logic. x. x + 0 = x. Predicate logic over integer expressions: a language of logical assertions, for example. Why discuss predicate logic?

Generalized Quantifiers Logical and Linguistic Aspects

Quasi-Second-Order Parsing for 1-Endpoint-Crossing, Pagenumber-2 Graphs

This kind of reordering is beyond the power of finite transducers, but a synchronous CFG can do this.

Lecture Notes on Inductive Definitions

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

Sharpening the empirical claims of generative syntax through formalization

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

22c:145 Artificial Intelligence

Syntax-Based Decoding

CS522 - Programming Language Semantics

Denotation of Predicates

Generative Models for Sentences

Predicate Logic. Xinyu Feng 09/26/2011. University of Science and Technology of China (USTC)

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

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

Computational Models - Lecture 4 1

Introduction to Computational Linguistics

CVO103: Programming Languages. Lecture 2 Inductive Definitions (2)

Harvard CS 121 and CSCI E-207 Lecture 10: Ambiguity, Pushdown Automata

NLU: Semantic parsing

Lecture 3: Semantics of Propositional Logic

Natural Deduction for Propositional Logic

CKY & Earley Parsing. Ling 571 Deep Processing Techniques for NLP January 13, 2016

CS460/626 : Natural Language

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

Natural Language Processing 1. lecture 7: constituent parsing. Ivan Titov. Institute for Logic, Language and Computation

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

Predicate Logic. Xinyu Feng 11/20/2013. University of Science and Technology of China (USTC)

A brief introduction to Logic. (slides from

Syntax Analysis Part I

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

Syntax Analysis Part I

22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig.

CS626: NLP, Speech and the Web. Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 14: Parsing Algorithms 30 th August, 2012

Lecture Notes on Inductive Definitions

X-bar theory. X-bar :

Supplementary Notes on Inductive Definitions

Syntax Analysis Part I. Position of a Parser in the Compiler Model. The Parser. Chapter 4

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

Synchronous Grammars

Introduction to Probablistic Natural Language Processing

Decoding and Inference with Syntactic Translation Models

Decision Procedures for Satisfiability and Validity in Propositional Logic

Fast Computing Grammar-driven Convolution Tree Kernel for Semantic Role Labeling

Mixed Review Write an equation for each problem. Then solve the equation. 1. The difference between 70 and a number is 2. A number minus 13 is 1.

It rains now. (true) The followings are not propositions.

Models for Inexact Reasoning. Fuzzy Logic Lesson 8 Fuzzy Controllers. Master in Computational Logic Department of Artificial Intelligence

Ling 130 Notes: Syntax and Semantics of Propositional Logic

COMPUTER SCIENCE TRIPOS

HPSG: Binding Theory

AN ABSTRACT OF THE DISSERTATION OF

Better! Faster! Stronger*!

A Study of Entanglement in a Categorical Framework of Natural Language

ON THE LOGIC OF VERBAL MODIFICATION DAVID BEAVER AND CLEO CONDORAVDI

Recurrent neural network grammars

Transcription:

Bringing machine learning & compositional semantics together: central concepts https://githubcom/cgpotts/annualreview-complearning Chris Potts Stanford Linguistics CS 244U: Natural language understanding 1 / 8

Linguistic objects u, t, r, d u: the utterance t: the syntactic structure r: the semantic representation d: the denotation (sequence of strings/words) (tree structure) (aka logical form) (meaning) 2 / 8

Interpreted grammar Syntax Logical form Denotation N one 1 1 N 2 2 R plus + the R such that R(x, y) = x + y R minus the R such that R(x, y) = x y R times the R such that R(x, y) = x y S minus the f such that f(x) = x N S N S N S ( N ) N N L R N R ( R N L N R ) R ( N L, N R ) 3 / 8

Interpreted grammar Syntax Logical form Denotation N one 1 1 N 2 2 R plus + the R such that R(x, y) = x + y R minus the R such that R(x, y) = x y R times the R such that R(x, y) = x y S minus the f such that f(x) = x N S N S N S ( N ) N N L R N R ( R N L N R ) R ( N L, N R ) u is the translation of syntactic expression u r is the denotation of semantic representation r 3 / 8

Examples Utterance Logical form Denotation A seven minus five ( 7 5) 2 B minus three plus one (+ 3 1) 2 C minus times ( ( 2 2) 2) 0 D plus three plus four (+ 2 (+ 3 4)) 9 4 / 8

Examples N ( 7 5) 2 N seven R minus N five 7 5 7 the R such that R(x, y) = x y 5 4 / 8

Examples N : ( 7 5) 2 N : 7 seven R : minus N : 5 five 7 the R such that R(x, y) = x y 5 4 / 8

Examples N : ( 7 5) 2 N : 7 seven R : minus N : 5 five 7 the R such that R(x, y) = x y 5 N : (+ 3 1) 2 N : 3 R : + U : N : 3 plus minus three N : 1 one 3 the f such that f(x) = x 3 the R such that R(x, y) = x + y 1 4 / 8

Ambiguity N : ( ( 2 2) 2) = 0 ( 2 2) R : R : times Gen( minus times ) = minus N : ( 2 ( 2 2)) = 2 R : ( 2 2) minus R : times 5 / 8

Analogies with full natural language 6 / 8

Analogies with full natural language N : ( ( 2 2) 2) = 0 ( 2 2) R : R : times minus N : ( 2 ( 2 2)) = 2 R : ( 2 2) minus R : times 6 / 8

Analogies with full natural language N : ( ( 2 2) 2) = 0 NP ( 2 2) R : NP and N R : times A N engineers minus intelligent linguists N : ( 2 ( 2 2)) = 2 NP R : minus ( 2 2) R : times A intelligent N linguists NP and N engineers 6 / 8

Analogies with full natural language Syntax Logical form Denotation R minus the R such that R(x, y) = x y S minus the f such that f(x) = x 6 / 8

Analogies with full natural language Syntax Logical form Denotation R minus the R such that R(x, y) = x y S minus the f such that f(x) = x tell crane mean (a tell; tell the time; tell the distance to shore) (as in a bird ; as in a piece of equipment ) (as in average ; as in unpleasant ; as in excellent ) 6 / 8

Analogies with full natural language every tallest arg max 6 / 8

Compositionality Compositionality The meaning of a phrase is a function of the meanings of its immediate syntactic constituents and the way they are combined 7 / 8

Compositionality Compositionality The meaning of a phrase is a function of the meanings of its immediate syntactic constituents and the way they are combined N (+ 3 1) 2 N : 3 U : N : 3 minus three R : + plus N : 1 one 3 the f such that f(x) = x 3 the R such that R(x, y) = x + y 1 7 / 8

Compositionality Compositionality The meaning of a phrase is a function of the meanings of its immediate syntactic constituents and the way they are combined N (+ 3 1) 2 N : 3 U : N : 3 minus three R : + plus N : 1 one 3 the f such that f(x) = x 3 the R such that R(x, y) = x + y 1 Bringing machine learning and compositional semantics together the claim of compositionality is that being a semantic interpreter for a language L amounts to mastering the syntax of L, the lexical meanings of L, and the modes of semantic combination for L This also suggests the outlines of a learning task 7 / 8

Learning tasks The grammar frames the task; different parts of it can be learned Syntax Logical form Denotation N one 1 1 N 2 2 R plus + the R such that R(x, y) = x + y R minus the R such that R(x, y) = x y R times the R such that R(x, y) = x y S minus the f such that f(x) = x N S N S N S ( N ) N N L R N R ( R N L N R ) R ( N L, N R ) Parsing Semantic parsing Interpretive 8 / 8

Learning tasks The grammar frames the task; different parts of it can be learned Syntax Logical form Denotation N one 1 1 N 2 2 R plus + the R such that R(x, y) = x + y R minus the R such that R(x, y) = x y R times the R such that R(x, y) = x y S minus the f such that f(x) = x N S N S N S ( N ) N N L R N R ( R N L N R ) R ( N L, N R ) Parsing Semantic parsing Interpretive 8 / 8

Learning tasks The grammar frames the task; different parts of it can be learned Syntax Logical form Denotation N one 1 1 N 2 2 R plus + the R such that R(x, y) = x + y R minus the R such that R(x, y) = x y R times the R such that R(x, y) = x y S minus the f such that f(x) = x N S N S N S ( N ) N N L R N R ( R N L N R ) R ( N L, N R ) Parsing Semantic parsing Interpretive 8 / 8

Learning tasks The grammar frames the task; different parts of it can be learned Syntax Logical form Denotation N one 1 1 N 2 2 R plus + the R such that R(x, y) = x + y R minus the R such that R(x, y) = x y R times the R such that R(x, y) = x y S minus the f such that f(x) = x N S N S N S ( N ) N N L R N R ( R N L N R ) R ( N L, N R ) Parsing Semantic parsing Interpretive 8 / 8

Learning tasks The grammar frames the task; different parts of it can be learned Syntax Logical form Denotation N one 1 1 N 2 2 R plus + the R such that R(x, y) = x + y R minus the R such that R(x, y) = x y R times the R such that R(x, y) = x y S minus the f such that f(x) = x N S N S N S ( N ) N N L R N R ( R N L N R ) R ( N L, N R ) Parsing Semantic parsing Interpretive 8 / 8

Learning tasks The grammar frames the task; different parts of it can be learned Syntax Logical form Denotation N one 1 1 N 2 2 R plus + the R such that R(x, y) = x + y R minus the R such that R(x, y) = x y R times the R such that R(x, y) = x y S minus the f such that f(x) = x N S N S N S ( N ) N N L R N R ( R N L N R ) R ( N L, N R ) Parsing Semantic parsing Interpretive 8 / 8