Semantics in NLP (part 2) MAS.S60 Rob Speer Catherine Havasi * Lots of slides borrowed for lots of sources! See end.

Slides:



Advertisements
Similar presentations
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
Advertisements

CS460/IT632 Natural Language Processing/Language Technology for the Web Lecture 2 (06/01/06) Prof. Pushpak Bhattacharyya IIT Bombay Part of Speech (PoS)
Semantics and Time in Language MAS.S60 Rob Speer Catherine Havasi Some slides: James Pustejovsky.
September PROBABILISTIC CFGs & PROBABILISTIC PARSING Universita’ di Venezia 3 Ottobre 2003.
Methods in Computational Linguistics II Queens College Lecture 1: Introduction.
The Query Compiler Varun Sud ID: 104. Agenda Parsing  Syntax analysis and Parse Trees.  Grammar for a simple subset of SQL  Base Syntactic Categories.
NLP and Speech Course Review. Morphological Analyzer Lexicon Part-of-Speech (POS) Tagging Grammar Rules Parser thethe – determiner Det NP → Det.
NLP and Speech 2004 Feature Structures Feature Structures and Unification.
Compiler Construction Dr. Naveed Ejaz Lecture 2. 2 Two-pass Compiler Front End Back End source code IR machine code errors.
Natural Language ToolKit ( What is nltk? A tool which allows you to do NLP stuff such as Finding similar words in context, POS tagging etc.
1 SIMS 290-2: Applied Natural Language Processing Marti Hearst Sept 20, 2004.
April 26, 2007Workshop on Treebanking, NAACL-HTL 2007 Rochester1 Treebanks and Parsing Jan Hajič Institute of Formal and Applied Linguistics School of.
Fall 2004 Lecture Notes #5 EECS 595 / LING 541 / SI 661 Natural Language Processing.
Parsing the NEGRA corpus Greg Donaker June 14, 2006.
Compiler Construction CS 606 Sohail Aslam Lecture 2.
NATURAL LANGUAGE TOOLKIT(NLTK) April Corbet. Overview 1. What is NLTK? 2. NLTK Basic Functionalities 3. Part of Speech Tagging 4. Chunking and Trees 5.
SI485i : NLP Set 9 Advanced PCFGs Some slides from Chris Manning.
ELN – Natural Language Processing Giuseppe Attardi
Examples taken from: nltk.sourceforge.net/tutorial/introduction/index.html Natural Language Toolkit.
Invitation to Computer Science 5th Edition
Syntax Directed Definitions Synthesized Attributes
ICS611 Introduction to Compilers Set 1. What is a Compiler? A compiler is software (a program) that translates a high-level programming language to machine.
April 2005CSA2050:NLTK1 CSA2050: Introduction to Computational Linguistics NLTK.
Probabilistic Parsing Reading: Chap 14, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Paul Tarau, based on Rada.
For Friday Finish chapter 23 Homework: –Chapter 22, exercise 9.
Chapter 10: Compilers and Language Translation Invitation to Computer Science, Java Version, Third Edition.
Information Extraction MAS.S60 Catherine Havasi Rob Speer.
10/12/2015CPSC503 Winter CPSC 503 Computational Linguistics Lecture 10 Giuseppe Carenini.
MinorThird 서울시립대학교 인공지능연구실 곽별샘
An Extended GHKM Algorithm for Inducing λ-SCFG Peng Li Tsinghua University.
1 Natural Language Processing Lecture Notes 11 Chapter 15 (part 1)
Approaches to Machine Translation CSC 5930 Machine Translation Fall 2012 Dr. Tom Way.
Lecture 1, 7/21/2005Natural Language Processing1 CS60057 Speech &Natural Language Processing Autumn 2007 Lecture August 2007.
Natural language processing tools Lê Đức Trọng 1.
October 2005CSA3180 NLP1 CSA3180 Natural Language Processing Introduction and Course Overview.
CSA2050 Introduction to Computational Linguistics Lecture 1 Overview.
What you have learned and how you can use it : Grammars and Lexicons Parts I-III.
Natural Language Programming David Vadas The University of Sydney Supervisor: James Curran.
The Functions and Purposes of Translators Syntax (& Semantic) Analysis.
For Monday Read chapter 26 Last Homework –Chapter 23, exercise 7.
Compiler Design Introduction 1. 2 Course Outline Introduction to Compiling Lexical Analysis Syntax Analysis –Context Free Grammars –Top-Down Parsing –Bottom-Up.
INTRODUCTION TO COMPILERS(cond….) Prepared By: Mayank Varshney(04CS3019)
CS460/IT632 Natural Language Processing/Language Technology for the Web Lecture 1 (03/01/06) Prof. Pushpak Bhattacharyya IIT Bombay Introduction to Natural.
For Friday Finish chapter 23 Homework –Chapter 23, exercise 15.
Intro to NLP - J. Eisner1 Parsing Tricks.
CPSC 422, Lecture 27Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27 Nov, 16, 2015.
C H A P T E R T W O Linking Syntax And Semantics Programming Languages – Principles and Paradigms by Allen Tucker, Robert Noonan.
NLP. Introduction to NLP Time flies like an arrow –Many parses –Some (clearly) more likely than others –Need for a probabilistic ranking method.
For Monday Read chapter 26 Homework: –Chapter 23, exercises 8 and 9.
Overview of Statistical NLP IR Group Meeting March 7, 2006.
Parallel Tools for Natural Language Processing Mark Brigham Melanie Goetz Andrew Hogue / March 16, 2004.
Natural Language Processing Vasile Rus
Approaches to Machine Translation
50/50 rule You need to get 50% from tests, AND
Basic Parsing with Context Free Grammars Chapter 13
Propositional Logic Session 3
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27
Method of Language Definition
Statistical NLP Spring 2011
Presentation by Julie Betlach 7/02/2009
Probabilistic and Lexicalized Parsing
CSCI 5832 Natural Language Processing
CSCI 5832 Natural Language Processing
Lecture 4: Lexical Analysis & Chomsky Hierarchy
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 26
Approaches to Machine Translation
Artificial Intelligence 2004 Speech & Natural Language Processing
NLP.
Review for the Midterm. Overview (Chapter 1):
Presentation transcript:

Semantics in NLP (part 2) MAS.S60 Rob Speer Catherine Havasi * Lots of slides borrowed for lots of sources! See end.

Are people doing logic? Language Log: “Russia sentences” – *More people have been to Russia than I have.

Are people doing logic? Language Log: “Russia sentences” – *More people have been to Russia than I have. – *It just so happens that more people are bitten by New Yorkers than they are by sharks.

Are people doing logic? The thing is, is people come up with new ways of speaking all the time.

More lexical semantics

Quantifiers Every/all: \P. \Q. all x. (P(x) -> Q(x)) A/an/some: \P. \Q. exists x. (P(x) & Q(x)) The: – \P. \Q. Q(x) – P(x) goes in the presuppositions

High-level overview of C&C Find the highest-probability result with coherent semantics Doesn’t this create billions of parses that need to be checked? Yes.

High-level overview of C&C Parses using a Combinatorial Categorial Grammar (CCG) – fancier than a CFG – includes multiple kinds of “slash rules” – lots of grad student time spent transforming Treebank MaxEnt “supertagger” tags each word with a semantic category

High-level overview of C&C Find the highest-probability result with coherent semantics Doesn’t this create billions of parses that need to be checked?

High-level overview of C&C Find the highest-probability result with coherent semantics Doesn’t this create millions of parses that need to be checked? Yes. A typical sentence uses 25 GB of RAM. That’s where the Beowulf cluster comes in.

Can we do this with NLTK? NLTK’s feature-based parser has some machinery for doing semantics