Introduction to Semantics and Pragmatics. LING 2000 - 2006 NLP 2 NLP tends to focus on: Syntax – Grammars, parsers, parse trees, dependency structures.

Slides:



Advertisements
Similar presentations
Natural Language Processing (or NLP) Reading: Chapter 1 from Jurafsky and Martin, Speech and Language Processing: An Introduction to Natural Language Processing,
Advertisements

Language Processing Technology Machines and other artefacts that use language.
Semantics (Representing Meaning)
Leksička semantika i pragmatika 5. predavanje. Ambiguity Find at least 5 meanings of this sentence: –I made her duck I cooked waterfowl for her benefit.
Introduction to Natural Language Processing A.k.a., “Computational Linguistics”
Semantics: the study of meaning that can be determined from a sentence, phrase or word. Pragmatics: the study of meaning, as it depends on context (speaker,
Language Perception and Comprehension
Statistical NLP: Lecture 3
Discourse Martin Hassel KTH NADA Royal Institute of Technology Stockholm
Leksička semantika i pragmatika 6. predavanje. Headlines Police Begin Campaign To Run Down Jaywalkers Iraqi Head Seeks Arms Teacher Strikes Idle Kids.
For Friday No reading Homework –Chapter 23, exercises 1, 13, 14, 19 –Not as bad as it sounds –Do them IN ORDER – do not read ahead here.
Oct 2009HLT1 Human Language Technology Overview. Oct 2009HLT2 Acknowledgement Material for some of these slides taken from J Nivre, University of Gotheborg,
Shallow Semantics. LING NLP 2 Semantics and Pragmatics High-level Linguistics (the good stuff!) Semantics: the study of meaning that can be.
LING NLP 1 Introduction to Computational Linguistics Martha Palmer April 19, 2006.
Leksička semantika i pragmatika 1. predavanje. Introduction to Semantics and Pragmatics.
Leksička semantika i pragmatika 2. predavanje. Semantics -predicate arguments break(AGENT, INSTRUMENT, PATIENT) AGENT PATIENT INSTRUMENT John broke the.
Linguistic Theory Lecture 8 Meaning and Grammar. A brief history In classical and traditional grammar not much distinction was made between grammar and.
Natural Language and Speech Processing Creation of computational models of the understanding and the generation of natural language. Different fields coming.
Introduction to Deep Processing Techniques for NLP Deep Processing Techniques for Natural Language Processing Ling 571 January 3, 2011 Gina-Anne Levow.
Natural Language Processing (NLP) Overview and history of the field Knowledge of language The role of ambiguity Models and Algorithms Eliza, Turing, and.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
Natural Language Processing Prof: Jason Eisner Webpage: syllabus, announcements, slides, homeworks.
Natural Language Processing Ellen Back, LIS489, Spring 2015.
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing INTRODUCTION Muhammed Al-Mulhem March 1, 2009.
SI485i : NLP Day 1 Intro to NLP. Assumptions about You You know… how to program Java basic UNIX usage basic probability and statistics (we’ll also review)
9/8/20151 Natural Language Processing Lecture Notes 1.
1 Ling 569: Introduction to Computational Linguistics Jason Eisner Johns Hopkins University Tu/Th 1:30-3:20 (also this Fri 1-5)
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Leksička semantika i pragmatika 4. predavanje. Question Answering What does “door” mean? What year was Abraham Lincoln born? How many states were in the.
Compliment responses among native and non-native English speakers Evidence of Pragmatic transfer from Swedish into English Author: Thérèse Bergqvist.
1 Natural Language Processing Gholamreza Ghassem-Sani Fall 1383.
1 Computational Linguistics Ling 200 Spring 2006.
Natural Language Processing Introduction. 2 Natural Language Processing We’re going to study what goes into getting computers to perform useful and interesting.
1 LING 6932 Spring 2007 LING 6932 Topics in Computational Linguistics Hana Filip Lecture 1: Introduction to Field, History, Quick Review of Regular Expressions,
Leksička semantika i pragmatika 3. predavanje. Machine Translation The Story of the Stone –=The Dream of the Red Chamber (Cao Xueqin 1792) Issues: (“Language.
CHAPTER 13 NATURAL LANGUAGE PROCESSING. Machine Translation.
Discourse Analysis Force Migration and Refugee Studies Program The American University in Cairo Professor Robert S. Williams.
Introduction to CL & NLP CMSC April 1, 2003.
Natural Language Processing Daniele Quercia Fall, 2000.
II. LANGUAGE AND COMMUNICATION DOMAIN I can answer questions and talk with my teacher and friends. I can follow directions. Listening Comprehension Skill.
CS 124/LINGUIST 180 From Languages to Information
Linguistic Essentials
AMBIGUITY DONE BY SAMAR NAIF HINDI SUBMITTED TO WALEED AMER.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 1.
For Monday Read chapter 24, sections 1-3 Homework: –Chapter 23, exercise 8.
For Friday Finish chapter 24 No written homework.
For Monday Read chapter 26 Last Homework –Chapter 23, exercise 7.
CSE467/567 Computational Linguistics Carl Alphonce Computer Science & Engineering University at Buffalo.
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.
Introduction to Deep Processing Techniques for NLP Deep Processing Techniques for NLP Ling 571 January 6, 2014 Gina-Anne Levow.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
NLP. Introduction to NLP Last week, Min broke the window with a hammer. The window was broken with a hammer by Min last week With a hammer, Min broke.
Introduction to Deep Processing Techniques for NLP Deep Processing Techniques for NLP Ling 571 January 5, 2015 Gina-Anne Levow.
For Monday Read chapter 26 Homework: –Chapter 23, exercises 8 and 9.
Introduction to Deep Processing Techniques for NLP Deep Processing Techniques for NLP Ling 571 January 4, 2016 Gina-Anne Levow.
Language Learning for Busy People These documents are private and confidential. Please do not distribute.. Intermediate: I Disagree.
Sentence-Utterance-Proposition
/665 Natural Language Processing
Chapter 7 Semantics and Pragmatics
Statistical NLP: Lecture 3
Natural Language Processing
CSCI 5832 Natural Language Processing
LING 138/238 SYMBSYS 138 Intro to Computer Speech and Language Processing Dan Jurafsky 1/16/2019 LING 138/238 Autumn 2004.
Linguistic Essentials
A User study on Conversational Software
Artificial Intelligence 2004 Speech & Natural Language Processing
Sentence-Utterance-Proposition
Information Retrieval
Presentation transcript:

Introduction to Semantics and Pragmatics

LING NLP 2 NLP tends to focus on: Syntax – Grammars, parsers, parse trees, dependency structures Semantics – Subcategorization frames, semantic classes, ontologies, formal semantics Pragmatics – Pronouns, reference resolution, discourse models

LING NLP 3 Semantics and Pragmatics High-level Linguistics (the good stuff!) Semantics: the study of meaning that can be determined from a sentence, phrase or word. Pragmatics: the study of meaning, as it depends on context (speaker, situation)

LING NLP 4 Language to Logic John went to the book store.  John  store1, go(John, store1) John bought a book. buy(John,book1) John gave the book to Mary. give(John,book1,Mary) Mary put the book on the table. put(Mary,book1,table1)

LING NLP 5 Semantics Same event - different sentences John broke the window with a hammer. John broke the window with the crack. The hammer broke the window. The window broke.

LING NLP 6 Same event - different syntactic frames John broke the window with a hammer. SUBJ VERB OBJ MODIFIER John broke the window with the crack. SUBJ VERB OBJ MODIFIER The hammer broke the window. SUBJ VERB OBJ The window broke. SUBJ VERB

LING NLP 7 Semantics -predicate arguments break(AGENT, INSTRUMENT, PATIENT) AGENT PATIENT INSTRUMENT John broke the window with a hammer. INSTRUMENT PATIENT The hammer broke the window. PATIENT The window broke. Fillmore 68 - The case for case

LING NLP 8 AGENT PATIENT INSTRUMENT John broke the window with a hammer. SUBJ OBJ MODIFIER INSTRUMENT PATIENT The hammer broke the window. SUBJ OBJ PATIENT The window broke. SUBJ

CIS 8590 – Fall 2008 NLP 9 Natural Language Processing Applications and Tasks Machine Translation Question-Answering Information Retrieval Information Extraction

LING NLP 10 Machine Translation One of the first applications for computers – bilingual dictionary > word-word translation Good translation requires understanding! – War and Peace, The Sound and The Fury? What can we do? Sublanguages. – technical domains, static vocabulary – Meteo in Canada, Caterpillar Tractor Manuals, Botanical descriptions, Military Messages

LING NLP 11 Example translation

Machine Translation The Story of the Stone – =The Dream of the Red Chamber (Cao Xueqin 1792) Issues: (“Language Divergences”) – Sentence segmentation – Zero-anaphora – Coding of tense/aspect – Penetrate -> penetrated – Stylistic differences across languages Bamboo tip plaintain leaf -> bamboos and plantains – Cultural knowledge Curtain -> curtains of her bed

Machine Translation Chinese gloss: Dai-yu alone on bed top think-of-with-gratitude Bao-chai again listen to window outside bamboo tip plantain leaf of on-top rain sound sigh drop clear cold penetrate curtain not feeling again fall down tears come Hawkes translation: As she lay there alone, Dai-yu’s thoughts turned to Bao-chai… Then she listened to the insistent rustle of the rain on the bamboos and plantains outside her window. The coldness penetrated the curtains of her bed. Almost without noticing it she had begun to cry.

Language Families

Babelfish Demo Old example: The spirit is willing, but the flesh is weak.

Question Answering What does “door” mean? What year was Abraham Lincoln born? How many states were in the United States when Lincoln was born? Was there a military draft during the Hoover administration? What do US scientists think about whether human cloning should be legal?

Modern QA systems Still in infancy Simple factoid questions beginning to work OK Annual government-sponsored “bakeoff” called TREC

QA Demo UIUC QA Demo Qualim QA Demo

NLP 19 Issues in NLP Ambiguity! World Knowledge – it’s needed for understanding, but computers don’t have it

Ambiguity Computational linguists are obsessed with ambiguity Ambiguity is a fundamental problem of computational linguistics Resolving ambiguity is a crucial goal

Ambiguity Find at least 5 meanings of this sentence: – I made her duck

Ambiguity Find at least 5 meanings of this sentence: – I made her duck I cooked waterfowl for her benefit (to eat) I cooked waterfowl belonging to her I created the (plaster?) duck she owns I caused her to quickly lower her head or body I waved my magic wand and turned her into undifferentiated waterfowl At least one other meaning that’s inappropriate for gentle company.

Ambiguity is Pervasive I caused her to quickly lower her head or body – Lexical category: “duck” can be a N or V I cooked waterfowl belonging to her. – Lexical category: “her” can be a possessive (“of her”) or dative (“for her”) pronoun I made the (plaster) duck statue she owns – Lexical Semantics: “make” can mean “create” or “cook”

Ambiguity is Pervasive Grammar: Make can be: – Transitive: (verb has a noun direct object) I cooked [waterfowl belonging to her] – Ditransitive: (verb has 2 noun objects) I made [her] (into) [undifferentiated waterfowl] – Action-transitive (verb has a direct object and another verb) – I caused [her] [to move her body]

Ambiguity is Pervasive Phonetics! – I mate or duck – I’m eight or duck – Eye maid; her duck – Aye mate, her duck – I maid her duck – I’m aid her duck – I mate her duck – I’m ate her duck – I’m ate or duck – I mate or duck

LING NLP 26 Headlines Police Begin Campaign To Run Down Jaywalkers Iraqi Head Seeks Arms Teacher Strikes Idle Kids Miners Refuse To Work After Death Juvenile Court To Try Shooting Defendant

Kinds of knowledge needed? Consider the following interaction with HAL the computer from 2001: A Space Odyssey Dave: Open the pod bay doors, Hal. HAL: I’m sorry Dave, I’m afraid I can’t do that.

Knowledge needed to build HAL? Speech recognition and synthesis – Dictionaries (how words are pronounced) – Phonetics (how to recognize/produce each sound of English) Natural language understanding – Knowledge of the English words involved What they mean How they combine (what is a `pod bay door’?) – Knowledge of syntactic structure I’m I do, Sorry that afraid Dave I’m can’t

What’s needed? Dialog and pragmatic knowledge – “open the door” is a REQUEST (as opposed to a STATEMENT or information-question) – It is polite to respond, even if you’re planning to kill someone. – It is polite to pretend to want to be cooperative (I’m afraid I can’t…) – What is `that’ in `I can’t do that’? Even a system to book airline flights needs much of this kind of knowledge

Eliza: Weizenbaum (1966) User: You are like my father in some ways. ELIZA: What resemblance do you see User: You are not very aggressive but I think you don’t want me to notice that. ELIZA: What makes you think I am not aggressive User: You don’t argue with me ELIZA: Why do you think I don’t argue with you User: You are afraid of me ELIZA: Does it please you to believe I am afraid of you

Modern conversational agents Switchboard Receptionists – Implications: need to know how a native or non-native speaker of English is likely to pronounce a random American name. Eek. Airline and other simple dialogue systems – Lots of fabulously fun pragmatic issues Grounding Error handling In general – Now that there are commercial installations – Big incentive to use linguistic or any other kind of knowledge if it actually improves performance

Well-understood Semantic Tasks Named-entity Recognition Coreference Resolution Semantic Role Labeling Sentiment Classification

Entities Named Entity Tagging: Identify all the proper names in a text Sally went to see Up in the Air at the local theater. Coreference Resolution: Identify all references (aka ‘mentions’) of people, places and things in text, and determine which mentions are ‘co- referential’. John stuck his foot in his mouth.

Semantic Role Labeling Semantic role labeling is computational task of assigning semantic roles to phrases B-A0 REL B-A1 I-A1 B-AMI-AMI-AM John broke the window with a hammer.

Sentiment Classification Given a review (about a movie, hotel, Amazon product, etc.), a sentiment classification system tries to determine what opinions are expressed in the review. Coarse-level objective: is the review positive, negative, or neutral overall? Fine-grained objective: what are the positive aspects (according to the reviewer), and what are the negative aspects?