Agents That Communicate

Similar documents
Natural Language Processing. George Konidaris

CS 598 Natural Language Processing

Compositional Semantics

Proof Theory for Syntacticians

Some Principles of Automated Natural Language Information Extraction

Grammars & Parsing, Part 1:

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

Basic Parsing with Context-Free Grammars. Some slides adapted from Julia Hirschberg and Dan Jurafsky 1

Inleiding Taalkunde. Docent: Paola Monachesi. Blok 4, 2001/ Syntax 2. 2 Phrases and constituent structure 2. 3 A minigrammar of Italian 3

Parsing of part-of-speech tagged Assamese Texts

The College Board Redesigned SAT Grade 12

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy

11/29/2010. Statistical Parsing. Statistical Parsing. Simple PCFG for ATIS English. Syntactic Disambiguation

TABE 9&10. Revised 8/2013- with reference to College and Career Readiness Standards

ENGBG1 ENGBL1 Campus Linguistics. Meeting 2. Chapter 7 (Morphology) and chapter 9 (Syntax) Pia Sundqvist

"f TOPIC =T COMP COMP... OBJ

Aspectual Classes of Verb Phrases

A Version Space Approach to Learning Context-free Grammars

Using dialogue context to improve parsing performance in dialogue systems

Enhancing Unlexicalized Parsing Performance using a Wide Coverage Lexicon, Fuzzy Tag-set Mapping, and EM-HMM-based Lexical Probabilities

1 st Quarter (September, October, November) August/September Strand Topic Standard Notes Reading for Literature

Student Name: OSIS#: DOB: / / School: Grade:

Oakland Unified School District English/ Language Arts Course Syllabus

Accurate Unlexicalized Parsing for Modern Hebrew

Objectives. Chapter 2: The Representation of Knowledge. Expert Systems: Principles and Programming, Fourth Edition

California Department of Education English Language Development Standards for Grade 8

AQUA: An Ontology-Driven Question Answering System

Chapter 4: Valence & Agreement CSLI Publications

Houghton Mifflin Reading Correlation to the Common Core Standards for English Language Arts (Grade1)

Mercer County Schools

Intra-talker Variation: Audience Design Factors Affecting Lexical Selections

A Minimalist Approach to Code-Switching. In the field of linguistics, the topic of bilingualism is a broad one. There are many

Introduction to HPSG. Introduction. Historical Overview. The HPSG architecture. Signature. Linguistic Objects. Descriptions.

Analysis of Probabilistic Parsing in NLP

First Grade Curriculum Highlights: In alignment with the Common Core Standards

Modeling Attachment Decisions with a Probabilistic Parser: The Case of Head Final Structures

Taught Throughout the Year Foundational Skills Reading Writing Language RF.1.2 Demonstrate understanding of spoken words,

Surface Structure, Intonation, and Meaning in Spoken Language

MYP Language A Course Outline Year 3

Developing a TT-MCTAG for German with an RCG-based Parser

Common Core State Standards for English Language Arts

5 th Grade Language Arts Curriculum Map

Derivational: Inflectional: In a fit of rage the soldiers attacked them both that week, but lost the fight.

The Interface between Phrasal and Functional Constraints

Myths, Legends, Fairytales and Novels (Writing a Letter)

Arizona s English Language Arts Standards th Grade ARIZONA DEPARTMENT OF EDUCATION HIGH ACADEMIC STANDARDS FOR STUDENTS

Context Free Grammars. Many slides from Michael Collins

Individual Component Checklist L I S T E N I N G. for use with ONE task ENGLISH VERSION

AN EXPERIMENTAL APPROACH TO NEW AND OLD INFORMATION IN TURKISH LOCATIVES AND EXISTENTIALS

Control and Boundedness

Adapting Stochastic Output for Rule-Based Semantics

What the National Curriculum requires in reading at Y5 and Y6

Grade 5: Module 3A: Overview

PAGE(S) WHERE TAUGHT If sub mission ins not a book, cite appropriate location(s))

Procedia - Social and Behavioral Sciences 154 ( 2014 )

Specifying Logic Programs in Controlled Natural Language

UNIVERSITY OF OSLO Department of Informatics. Dialog Act Recognition using Dependency Features. Master s thesis. Sindre Wetjen

a) analyse sentences, so you know what s going on and how to use that information to help you find the answer.

Heritage Korean Stage 6 Syllabus Preliminary and HSC Courses

Towards a MWE-driven A* parsing with LTAGs [WG2,WG3]

Grade 11 Language Arts (2 Semester Course) CURRICULUM. Course Description ENGLISH 11 (2 Semester Course) Duration: 2 Semesters Prerequisite: None

RANKING AND UNRANKING LEFT SZILARD LANGUAGES. Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A ER E P S I M S

Pseudo-Passives as Adjectival Passives

Reading Grammar Section and Lesson Writing Chapter and Lesson Identify a purpose for reading W1-LO; W2- LO; W3- LO; W4- LO; W5-

Writing a composition

cambridge occasional papers in linguistics Volume 8, Article 3: 41 55, 2015 ISSN

Derivational and Inflectional Morphemes in Pak-Pak Language

Case government vs Case agreement: modelling Modern Greek case attraction phenomena in LFG

Abstractions and the Brain

NATURAL LANGUAGE PARSING AND REPRESENTATION IN XML EUGENIO JAROSIEWICZ

Highlighting and Annotation Tips Foundation Lesson

Towards a Machine-Learning Architecture for Lexical Functional Grammar Parsing. Grzegorz Chrupa la

Achievement Level Descriptors for American Literature and Composition

Strategic discourse comprehension

THE INTERNATIONAL JOURNAL OF HUMANITIES & SOCIAL STUDIES

Dickinson ISD ELAR Year at a Glance 3rd Grade- 1st Nine Weeks

Minimalism is the name of the predominant approach in generative linguistics today. It was first

Copyright 2017 DataWORKS Educational Research. All rights reserved.

Word Stress and Intonation: Introduction

Erkki Mäkinen State change languages as homomorphic images of Szilard languages

TWO OLD WOMEN (An Alaskan Legend of Betrayal, Courage and Survival) By Velma Wallis

Citation for published version (APA): Veenstra, M. J. A. (1998). Formalizing the minimalist program Groningen: s.n.

Type Theory and Universal Grammar

West Windsor-Plainsboro Regional School District Spanish 2

Prediction of Maximal Projection for Semantic Role Labeling

Target Language Preposition Selection an Experiment with Transformation-Based Learning and Aligned Bilingual Data

CEFR Overall Illustrative English Proficiency Scales

ELD CELDT 5 EDGE Level C Curriculum Guide LANGUAGE DEVELOPMENT VOCABULARY COMMON WRITING PROJECT. ToolKit

National Literacy and Numeracy Framework for years 3/4

CELTA. Syllabus and Assessment Guidelines. Third Edition. University of Cambridge ESOL Examinations 1 Hills Road Cambridge CB1 2EU United Kingdom

Machine Learning from Garden Path Sentences: The Application of Computational Linguistics

Parsing natural language

Prentice Hall Literature Common Core Edition Grade 10, 2012

Language Acquisition Chart

Lecture 1: Basic Concepts of Machine Learning

Big Fish. Big Fish The Book. Big Fish. The Shooting Script. The Movie

Teaching Vocabulary Summary. Erin Cathey. Middle Tennessee State University

Grounding Language for Interactive Task Learning

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

Language properties and Grammar of Parallel and Series Parallel Languages

Transcription:

INF5390 Kunstig intelligens Agents That Communicate Roar Fjellheim INF5390-AI-12 Agents That Communicate 1

Outline Communication and action Language structures Parsing and semantics Steps of communication Summary AIMA Chapter 23: Natural Language for Communication INF5390-AI-12 Agents That Communicate 2

Communication and language One definition of communication Communication is the intentional exchange of information brought about by the production and perception of signs drawn from a shared system of a limited number of conventional signs Humans use language to communicate Language is a shared system of a limited number of conventional signs Its structure is sufficiently rich to allow an unbounded number of qualitatively different messages INF5390-AI-12 Agents That Communicate 3

Communication as action To produce messages in a language is one of the actions available to an agent This action is called a speech act (can be spoken, written, etc.) In a speech act, an utterance consisting of words is delivered from a speaker to a hearer Different types of speech acts serve different purposes INF5390-AI-12 Agents That Communicate 4

Some types of speech acts Inform Provide information to hearer Query Ask for information Answer Inform in response to query Request Ask hearer to perform action Deny Refuse to perform action Command Request with no option to deny Promise Commit to future action Offer Propose to do future action Acknowledge Confirm e.g. request or offer. INF5390-AI-12 Agents That Communicate 5

Planning and understanding speech acts Deciding when a speech act is called for, and decide which one to use, is equivalent to planning Understanding a speech act is similar to diagnosis or plan recognition I.e., one can use methods from other parts of AI in implementing perception and action in communicating agents INF5390-AI-12 Agents That Communicate 6

Natural and formal languages Natural languages are a rich field of empirical and logical study, including in AI Formal languages are invented ones, in contrast to natural languages, and include logic, etc. Formal language concepts are being used in analysis of natural languages INF5390-AI-12 Agents That Communicate 7

Formal language concepts A formal language is a set of strings (sentences) The wumpus is dead A string is a sequence of symbols taken from a finite set called the terminal symbols (words) dead, is, wumpus, the A phrase is a substring of a sentence. There are different categories (symbolized by nonterminal symbols) of phrases NP (noun phrase): the wumpus VP (verb phrase): is dead INF5390-AI-12 Agents That Communicate 8

Formal language concepts (cont.) The structure (grammar) of a language can be defined using a phrase structure, i.e. combinations of terminal and nonterminal symbols NP VP Rewrite rules define how a single nonterminal symbol (phrase) may be replaced by a structure S NP VP INF5390-AI-12 Agents That Communicate 9

A grammar for a fragment of English Lexicon List of valid words Categories: Noun, verb, adjective,.. Grammar Rules for valid sentences Nonterminals: Sentence (S), noun phrase (NP).. Parsing Analyze a given sequence of lexicon words as a treestructure allowed by grammar rules INF5390-AI-12 Agents That Communicate 10

Lexicon of the fragment INF5390-AI-12 Agents That Communicate 11

Grammar of the fragment INF5390-AI-12 Agents That Communicate 12

Parsing Search for a parse tree for a given sentence, e.g. PARSE( the wumpus is dead, grammar, S) NP S VP [S: [NP: [Article: the] [Noun: wumpus]] [VP: [Verb: is] [Adjective: dead]]] Article Noun Verb Adjective the wumpus is dead INF5390-AI-12 Agents That Communicate 13

Top-down vs. bottom-up parsing Top-down parsing Initial parse tree is the root with unknown children [S:?] At each step, select leftmost node in the tree with unknown children and look for grammar rules with LHS that matches the node. Replace? with RHS and repeat Stop when leaves of the tree exactly matches the string Bottom-up parsing Initial list of words, seen as list of singleton parse trees At each step, replace each sequence of parse trees that matches an RHS of a grammar rule, with the corresponding LHS, and repeat Stop when the tree is the single node S INF5390-AI-12 Agents That Communicate 14

Semantic interpretation Having analyzed the sentence, we need to interpret its meaning; i.e. decide its semantic content We adopt first-order logic (FOL) as the representation language E.g., the wumpus is dead and John loves Mary has the meaning: Dead(Wumpus) Loves(John, Mary) Compositional semantics The meaning of the entire sentence is composed of the meanings of its constituents INF5390-AI-12 Agents That Communicate 15

Augmenting grammar for semantics Each category of the grammar is augmented with a single argument that represents the semantics NP becomes NP(obj) - where obj is the FOL term that represents the noun phrase VP becomes VP(rel) - where rel is the FOL relation (predicate) that represents the verb Also needs -expressions for verbs: x Loves(x, Mary) - the predicate of variable x such that x loves Mary (x Loves(x, Mary))(John) - the predicate applied to the argument John, yielding Loves(John, Mary) INF5390-AI-12 Agents That Communicate 16

Semantically augmented grammar fragment S(rel(obj)) NP(obj) VP(rel) VP(rel(obj)) Verb(rel) NP(obj) NP(obj) Name(obj) Name(John) John Name(Mary) Mary Verb(x y Loves(x, y)) loves Can be extended: Time Tense Quantification Pragmatics Etc. INF5390-AI-12 Agents That Communicate 17

Deriving semantics during parsing S(Loves(John, Mary)) NP(John) VP(x Loves(x, Mary)) NP(Mary) Name(John) Verb(x y Loves(x, y)) Name(Mary) John loves Mary INF5390-AI-12 Agents That Communicate 18

Steps of communication Speaker S wants to convey proposition P to hearer H using words W Speaker S Intention S wants H to believe P Generation S chooses the words W Synthesis S utters the words W Perception H perceives W (ideally=w) Analysis H infers that W may mean P 1,.., P n Disambiguation H infers that S intended P i (ideally=p) Incorporation Hearer H H decides to (dis)believe P i INF5390-AI-12 Agents That Communicate 19

Speaker steps in more detail Intention Speaker decides that there is something to say, e.g. by reasoning about beliefs and goals of hearer Know(H, Alive(Wumpus, S3)) Generation Speaker uses knowledge about language in deciding what to say Synthesis The wumpus is dead Finally, the sentence is uttered via the speech act organ (printer, screen, speech synthesizer,..) INF5390-AI-12 Agents That Communicate 20

Hearer steps in more detail Perception The utterance is received, e.g. by speech recognition, scene analysis,.. Analysis Parsing: Recognizing constituent phrases (parse tree) Interpretation: Extract meaning as expression in e.g. logic Article NP S VP Noun Verb Adjective The wumpus is dead Alive(Wumpus, S3) Tired(Wumpus, S3) INF5390-AI-12 Agents That Communicate 21

Hearer steps in more detail (cont.) Disambiguation Analysis may yield different interpretations, and the agent must choose the most probable one, e.g. using probabilistic reasoning Alive(Wumpus, S3) Incorporation Finally, the agent updates its knowledge base with the new information TELL(KB, Alive(Wumpus, S3)) INF5390-AI-12 Agents That Communicate 22

Summary Agents need to communicate in order to achieve certain goals, such as getting the other agent to believe something or to do something Sending a signal is called a speech act, of which many types may be identified: inform, request, deny, promise, etc. Formal languages (incl. subsets of natural language) used for communication may be defined by a lexicon and a grammar INF5390-AI-12 Agents That Communicate 23

Summary (cont.) Efficient techniques have been developed for parsing the structure of sentences and interpreting the intended semantics Communication involves speaker and hearer steps and methods have been developed to handle each of the steps for a range of formal languages In addition to language communication, (some) agents need to interact with their environment through vision, tactile sensing, robotic locomotion and manipulation, etc. INF5390-AI-12 Agents That Communicate 24