Semantics. Philipp Koehn. 16 November 2017

Similar documents
CIDOC CRM A High Level Overview of the Model. George Bruseker ICS-FORTH CIDOC 2017 Tblisi, Georgia 25/09/2017

Semantic Analysis in Language Technology

Lecture 13: Chapter 10: Semantics

Metonymy Research in Cognitive Linguistics. LUO Rui-feng

What are meanings? What do linguistic expressions stand for or denote?

Lexical Semantics: Sense, Referent, Prototype. Sentential Semantics (phrasal, clausal meaning)

Sentence Processing. BCS 152 October

OKLAHOMA SUBJECT AREA TESTS (OSAT )

Meaning 1. Semantics is concerned with the literal meaning of sentences of a language.

Introduction to Natural Language Processing Phase 2: Question Answering

METACOGNITIVE CHALLENGES SUMMARY CHART

Word Sense Disambiguation in Queries. Shaung Liu, Clement Yu, Weiyi Meng

Key - Worksheet 3 Linguistics Eng B

The structure of this ppt

TimeLine: Cross-Document Event Ordering SemEval Task 4. Manual Annotation Guidelines

Introduction to WordNet, HowNet, FrameNet and ConceptNet

Introduction to NLP. Ruihong Huang Texas A&M University. Some slides adapted from slides by Dan Jurafsky, Luke Zettlemoyer, Ellen Riloff

The ACL Anthology Network Corpus. University of Michigan

VOCABULARY. Looking for a temporary job / Spoil yourself! / If I were you...

Compound Noun Polysemy and Sense Enumeration in WordNet

Multi-Agent and Semantic Web Systems: Ontologies

Toward Computational Recognition of Humorous Intent

Foundations in Data Semantics. Chapter 4

Chapter 9: Semantics. LANE 321 Content adapted from Yule (2010) Copyright 2014 Haifa Alroqi

Ontology and Taxonomy. Computational Linguistics Emory University Jinho D. Choi

Language and Inference

How do you say mesa in English? What is the meaning of board in Spanish? Can you repeat that, please? How do you spell country? May I come in?

WRITING HISTORY: A GUIDE FOR CANADIAN STUDENTS BY WILLIAM STOREY

Sentence Processing III. LIGN 170, Lecture 8

Chinese Word Sense Disambiguation with PageRank and HowNet

Lecture 7. Scope and Anaphora. October 27, 2008 Hana Filip 1

LESSON TWELVE VAGUITY AND AMBIGUITY

Illinois Standards Alignment Grades Three through Eleven

Peirce's Remarkable Rules of Inference

Improving MeSH Classification of Biomedical Articles using Citation Contexts

Articulating Medieval Logic, by Terence Parsons. Oxford: Oxford University Press,

COMMON GRAMMAR ERRORS. By: Dr. Elham Alzoubi

! Japanese: a wh-in-situ language. ! Taroo-ga [ DP. ! Taroo-ga [ CP. ! Wh-words don t move. Islands don t matter.

TOUR OF A UNIT. Step 1: Grammar in Context

Knowledge Representation

1 The structure of this exercise

Section 1: Reading/Literature

The structure of this ppt. Structural and categorial (and some functional) issues: English Hungarian

Contents. sample. Unit Page Enrichment. 1 Conditional Sentences (1): If will Noun Suffixes... 4 * 3 Infinitives (1): to-infinitive...

NPCs Have Feelings Too: Verbal Interactions with Emotional Character AI. Gautier Boeda AI Engineer SQUARE ENIX CO., LTD

AteneodeZamboanga University

On the Ontological Basis for Logical Metonymy:

Regular Polysemy in WordNet and Pattern based Approach

Identifying functions of citations with CiTalO

CASAS Content Standards for Reading by Instructional Level

Rhetorical Structure Theory

Reply to Stalnaker. Timothy Williamson. In Models and Reality, Robert Stalnaker responds to the tensions discerned in Modal Logic

Developmental Sets. 1. Set I: (Spanish speaker)

Survey of Knowledge Base Content

Sentiment Aggregation using ConceptNet Ontology

What s New in the 17th Edition

Student Involvement Worksheet Lesson 1: Voiced and Voiceless

A picture of the grammar. Sense and Reference. A picture of the grammar. A revised picture. Foundations of Semantics LING 130 James Pustejovsky

I Can Statements UNIDAD 1. I know how to say all of the letters of the Spanish Alphabet.

The Turing Test and Its Discontents. CSCI 3202, Fall 2010

Introduction to semantic networks and conceptual graphs

The structure of this ppt. Sentence types An overview Yes/no questions WH-questions

The Grass Roots for the ACT English Exam

Table of Contents TABLE OF CONTENTS

Instant Words Group 1

Restrictive relative clause constructions as implicit coherence relations

CAS LX 522 Syntax I. Islands. Wh-islands. Phases. Complex Noun Phrase islands. Adjunct islands

introduction body of the essay conclusion

to believe all evening thing to see to switch on together possibly possibility around

Same and Different. Think and Discuss

LEARNING GRAMMAR WORKBOOK 6 is specially designed to assess and expand the student s usage of grammar in the English Language.

Introduction to NLP. Ruihong Huang Texas A&M University. Some slides adapted from slides by Dan Jurafsky, Luke Zettlemoyer, Ellen Riloff

Code : is a set of practices familiar to users of the medium

In the sentence above we find the article "a". It shows us that the speaker does not need a specific chair. He can have any chair.

Sentence and Expression Level Annotation of Opinions in User-Generated Discourse

On Meaning. language to establish several definitions. We then examine the theories of meaning

The First Hundred Instant Sight Words. Words 1-25 Words Words Words

LANGUAGE ARTS GRADE 3

HIGH FREQUENCY WORDS LIST 1 RECEPTION children should know how to READ them YEAR 1 children should know how to SPELL them

I-language Chapter 8: Anaphor Binding

DELHI PUBLIC SCHOOL FIROZABAD

Projektseminar: Sentimentanalyse Dozenten: Michael Wiegand und Marc Schulder

Knowledge Representation

Key stage 2 - English grammar, punctuation and spelling practice paper

Revised Curriculum Guide 2013

UNIT 13A AI: Natural Language Processing. Artificial Intelligence

Semantic Research Methodology

Room 6 First Grade Homework due on Tuesday, November 3rd

English Language Arts 600 Unit Lesson Title Lesson Objectives

Two Styles of Construction Grammar Do Ditransitives

Pronouns and possessive adjectives

Tamar Sovran Scientific work 1. The study of meaning My work focuses on the study of meaning and meaning relations. I am interested in the duality of

Reducing False Positives in Video Shot Detection

CHAPTER 2 REVIEW OF RELATED LITERATURE. advantages the related studies is to provide insight into the statistical methods

Pragmatically Computationally Difficult Pragmatics to Recognize Humour

High Frequency Words KS1. Reception

ResearchSpace: Querying a Semantic Network

CSE 517 Natural Language Processing Winter 2013

The structure of this ppt

A sentence is a group of words that tells a whole idea. Example: The cat sat on the mat.

Transcription:

Semantics Philipp Koehn 16 November 2017

Meaning 1 The grand goal of artificial intelligence machines that do not mindlessly process data... but that ultimately understand its meaning But what is meaning?

Meaningful Machines 2 I understand you.

A Scale of Understanding? 3 wisdom knowledge data

Eliza 4 Joseph Weizenbaum wrote the computer program Eliza in 1969 to demonstrate how easily people can be fooled into thinking that machines have some deep understanding. young woman: Men are all alike. eliza: In what way? young woman: They re always bugging us about something specific or other. eliza: Can you think of a specific example? young woman: Well, my boyfriend made me come here. eliza: Your boyfriend made you come here? young woman: He says I m depressed much of the time. eliza: I am sorry to hear you are depressed. young woman: It s true. I m unhappy. eliza: Do you think coming here will help you not to be unhappy? Online demo: http://www-ai.ijs.si/eliza-cgi-bin/eliza script

5 semantic translation problems

Semantic Translation Problems 6 Syntactic analysis may be ambiguous Das Vorhaben verwarf die Kommission. the plan rejected the commission. Both readings (SVO and OSV) are syntactically possible But: OSV reading is semantically much more plausible Need for semantic model to produce semantically plausible output

Semantic Translation Problems 7 Pronominal anaphora I saw the movie and it is good. How to translate it into German (or French)? it refers to movie movie translates to Film Film has masculine gender ergo: it must be translated into masculine pronoun er We are not handling this very well [Le Nagard and Koehn, 2010]

Semantic Translation Problems 8 Coreference Whenever I visit my uncle and his daughters, I can t decide who is my favorite cousin. How to translate cousin into German? Male or female? Complex inference required

Semantic Translation Problems 9 Discourse Since you brought it up, I do not agree with you. Since you brought it up, we have been working on it. How to translated since? Temporal or conditional? Analysis of discourse structure a hard problem

10 lexical semantics

Word Senses 11 Some words have multiple meanings This is called polysemy Example: bank financial institution: I put my money in the bank. river shore: He rested at the bank of the river. How could a computer tell these senses apart?

Homonym 12 Sometimes two completely different words are spelled the same This is called a homonym Example: can modal verb: You can do it! container: She bought a can of soda. Distinction between polysemy and homonymy not always clear

How Many Senses? 13 How many senses does the word interest have? She pays 3% interest on the loan. He showed a lot of interest in the painting. Microsoft purchased a controlling interest in Google. It is in the national interest to invade the Bahamas. I only have your best interest in mind. Playing chess is one of my interests. Business interests lobbied for the legislation. Are these seven different senses? Four? Three?

Wordnet 14 Wordnet, a hierarchical database of senses, defines synsets According to Wordnet, interest is in 7 synsets Sense 1: a sense of concern with and curiosity about someone or something, Synonym: involvement Sense 2: the power of attracting or holding one s interest (because it is unusual or exciting etc.), Synonym: interestingness Sense 3: a reason for wanting something done, Synonym: sake Sense 4: a fixed charge for borrowing money; usually a percentage of the amount borrowed Sense 5: a diversion that occupies one s time and thoughts (usually pleasantly), Synonyms: pastime, pursuit Sense 6: a right or legal share of something; a financial involvement with something, Synonym: stake Sense 7: (usually plural) a social group whose members control some field of activity and who have common aims, Synonym: interest group

Sense and Translation 15 Most relevant for machine translation: different translations different sense Example interest translated into German Zins: financial charge paid for load (Wordnet sense 4) Anteil: stake in a company (Wordnet sense 6) Interesse: all other senses

Languages Differ 16 Foreign language may make finer distinctions Translations of river into French fleuve: river that flows into the sea rivière: smaller river English may make finer distinctions than a foreign language Translations of German Sicherheit into English security safety confidence

Overlapping Senses 17 Color names may differ between languages Many languages have one word for blue and green Japanese: ao change early 20th century: midori (green) and ao (blue) But still: vegetables are greens in English, ao-mono (blue things) in Japanese go traffic light is ao (blue) Color names in English and Berinomo (Papua New Guinea)

One Last Word on Senses 18 Lot of research in word sense disambiguation is focused on polysemous words with clearly distinct meanings, e.g. bank, plant, bat,... Often meanings are close and hard to tell apart, e.g. area, field, domain, part, member,... She is a part of the team. She is a member of the team. The wheel is a part of the car. * The wheel is a member of the car.

Ontology 19 FELINE CAT CANINE DOG WOLF FOX POODLE ENTITY ANIMAL MAMMAL CARNIVORE BEAR TERRIER

Representing Meaning 20 So far: the meaning of dog is DOG or dog(x) Not much gained here Words that have similar meaning should have similar representations Compositon of meaning Analogy meaning(daughter) = meaning(child) + meaning(female) meaning(king) + meaning(woman) meaning(man) = meaning(queen)

Distributional Semantics 21 Contexts may be represented by a vector of word counts Example: Then he grabbed his new mitt and bat, and headed back to the dugout for another turn at bat. Hulet isn t your average baseball player. It might have been doctoring up a bat, grooving a bat with pennies or putting a little pine tar on the baseball. around the dugout laughing at me. All the players were sitting The word counts normalized, so all the vector components add up to one. grabbed mitt headed dugout turn average baseball player doctoring grooving pennies pine tar sitting laughing 1 1 1 2 1 1 2 2 1 1 1 1 1 1 1 0.05 0.05 0.05 0.10 0.05 0.05 0.10 0.10 0.05 0.05 0.05 0.05 0.05 0.05 0.05 Average over all occurrences of word Context may also just focus on directly neighboring words

Word Embeddings 22

Word Embeddings 23

Word Sense Disambiguation 24 For many applications, we would like to disambiguate senses Supervised learning problem plant PLANT-FACTORY Features Directly neighboring words plant life manufacturing plant assembly plant plant closure plant species Any content words in a 50 word window Syntactically related words Syntactic role in sense Topic of the text Part-of-speech tag, surrounding part-of-speech tags

WSD and Machine Translation 25 Machine translation models already include the powerful features phrase translation model: condition translation on neighboring words language model: directly neighboring words in target language Limited success in adding wider context position-sensitive, syntactic, and local collocational features (Carpuat and Wu, 2007) maximum entropy classifier for surrounding context words (Tamchyna et al., 2014)

26 subcategorization frames

Verb Subcategorization 27 Example Das Vorhaben verwarf die Kommission. the plan rejected the commission. Propbank Arg0-PAG: rejecter (vnrole: 77-agent) Arg1-PPT: thing rejected (vnrole: 77-theme) Arg3-PRD: attribute Is plan a typical Arg0 of reject?

Dependency Parsing 28 Dependencies between words det arg0 arg1 det the plan rejected the commission Can be obtained by dedicated dependency parser CFG grammar with head word rules Are dependency relations enough? reject subj plan bad reject subj commission good

29 logical form

First Order Logic 30 Classical example Every farmer has a donkey Ambiguous, two readings Each farmer as its own donkey x: farmer(x) y: donkey(y) owns(x,y) There is only one donkey y: donkey(y) x: farmer(x) owns(x,y) Does this matter for translation? (typically not)

Logical Form and Inference 31 Input sentence Whenever I visit my uncle and his daughters, I can t decide who is my favorite cousin. Facts from input sentence d: female(d) u: father(d,u) i: uncle(u,i) c: cousin(i,c) World knowledge i,u,c: uncle(u,i) father(u,c) cousin(i,c) Hypothesis that c = d is consistent with given facts and world knowledge Inference female(d) female(c)

Scope 32 Example (Knight and Langkilde, 2000) green eggs and ham Only eggs are green Both are green (green eggs) and ham green (eggs and ham) Spanish translations Only eggs are green Also ambiguous huevos verdes y jamón jamón y huevos verdes Machine translation should preserve ambiguity

33 discourse

Ambiguous Discourse Markers 34 Example Since you brought it up, I do not agree with you. Since you brought it up, we have been working on it. How to translated since? Temporal or conditional?

Implicit Discourse Relationships 35 English syntactic structure may imply causation Wanting to go to the other side, the chicken crossed the road. This discourse relationship may have to made explicit in another language

Discourse Parsing 36 Discourse relationships, e.g., Circumstance, Antithesis, Concession, Solutionhood, Elaboration, Background, Enablement, Motivation, Condition, Interpretation, Evaluation, Purpose, Evidence, Cause, Restatement, Summary,... Hierarchical structure There is a discourse treebank, but inter-annotator agreement is low

37 abstract meaning representations

AMR: Towards Interlingua 38 Semantic representations of full sentences English-oriented Builds on Propbank Explicit annotation of co-reference Some additional semantic relationships (degree, part-of, possessives, etc.) Not everything resolved Not annotated: tense, plural, passive, focus, and other syntactic properties

Example 39 He looked at me very gravely, and put his arms around my neck. (a / and :op1 (l / look-01 :ARG0 (h / he) :ARG1 (i / i) :manner (g / grave :degree (v / very))) :op2 (p / put-01 :ARG0 h :ARG1 (a2 / arm :part-of h) :ARG2 (a3 / around :op1 (n / neck :part-of i))))

Abstracts from Syntax 40 Abstract meaning representation (l / look-01 :ARG0 (h / he) :ARG1 (i / i) :manner (g / grave :degree (v / very))) Possible English sentences He looks at me gravely. I am looked at by him very gravely. He gave me a very grave look.

Directed Acyclic Graphs 41 Formally, AMR structures are more complex than trees Co-reference directed acyclic graphs (DAG) Processing such DAGs is harder, algorithms are currently developed Tasks semantic parsing (English text English AMR) semantic transduction (foreign text English AMR) generation (English AMR English text) Active work on algorithms, but no competitive system yet

42 questions?