Natural Language Sections 22.1 - 22.4. What the Speaker Speaks §Intention l S wants H to believe P §Generation l S chooses the words, W to convey the.

Slides:



Advertisements
Similar presentations
Syntactic Complexity and Cohesion
Advertisements

Grammar Spinner Touch any part of the screen to begin. (Or click your mouse) Touch the screen again each time you want to spin.
Writing ( 二 ) 英文句型寫作 ( 二 ) 英文句型寫作 ( 二 ) 孫美文 老師 99 學年度第二學期.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Fall 2008Programming Development Techniques 1 Topic 9 Symbol Manipulation Generating English Sentences Section This is an additional example to symbolic.
Used in place of a noun pronoun.
Chapter Chapter Summary Languages and Grammars Finite-State Machines with Output Finite-State Machines with No Output Language Recognition Turing.
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
Knowledge Representation & Reasoning.  Introduction How can we formalize our knowledge about the world so that:  We can reason about it?  We can do.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 6 Dr Souham Meshoul CAP492.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Knowledge in intelligent systems So far, we’ve used relatively specialized, naïve agents. How can we build agents that incorporate knowledge and a memory?
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 8 Jim Martin.
LOGICAL AGENTS Yılmaz KILIÇASLAN. Definitions Logical agents are those that can:  form representations of the world,  use a process of inference to.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 5 Dr Souham Meshoul CAP492.
Let remember from the previous lesson what is Knowledge representation
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Some definitions Morphemes = smallest unit of meaning in a language Phrase = set of one or more words that go together (from grammar) (e.g., subject clause,
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Communication Ms. Morris.
Communication and Language Chap. 22. Outline Communication Grammar Syntactic analysis Problems.
Inteligenta Artificiala
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
Overview Project Goals –Represent a sentence in a parse tree –Use parses in tree to search another tree containing ontology of project management deliverables.
© 2006 SOUTH-WESTERN EDUCATIONAL PUBLISHING 11th Edition Hulbert & Miller Effective English for Colleges Chapter 7 PREPOSITIONS.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part A Knowledge Representation and Reasoning.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
The Parts of Speech By Ms. Walsh The 8 Parts of Speech… Nouns Adjectives Pronouns Verbs Adverbs Conjunctions Prepositions Interjections Walsh Publishing.
Artificial Intelligence: Natural Language
Linguistic Essentials
Agents That Communicate Chris Bourne Chris Christen Bryan Hryciw.
The Parts of Speech The 8 Parts of Speech… Nouns Adjectives Pronouns Verbs Adverbs Conjunctions Prepositions Interjections.
CSE LOGIC1 Propositional Logic An “adventure game” example Thinking?
The man bites the dog man bites the dog bites the dog the dog dog Parse Tree NP A N the man bites the dog V N NP S VP A 1. Sentence  noun-phrase verb-phrase.
1 Knowledge Representation Propositional Logic Vumpus World Knowledge Representation Propositional Logic Vumpus World.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Deep structure (semantic) Structure of language Surface structure (grammatical, lexical, phonological) Semantic units have all meaning components such.
Parts of Speech Review. A Noun is a person, place, thing, or idea.
GoBack definitions Level 1 Parts of Speech GoBack is a memorization game; the teacher asks students definitions, and when someone misses one, you go back.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
NATURAL LANGUAGE PROCESSING
Parts of Speech By: Miaya Nischelle Sample. NOUN A noun is a person place or thing.
Natural Language Processing (NLP)
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
LOGICAL AGENTS CHAPTER 7 AIMA 3. OUTLINE  Knowledge-based agents  Wumpus world  Logic in general - models and entailment  Propositional (Boolean)
Parts of Speech Review.
English 12 Mrs. Fountain Week 2 Warm-Ups.
EA C461 – Artificial Intelligence Logical Agent
DGP: Daily Grammar Practice
Natural Language - General
Logical Agents Chapter 7.
FIRST SEMESTER GRAMMAR
Artificial Intelligence
Week 3 Warm-Ups English 12 Mrs. Fountain.
Logical Agents Chapter 7.
Linguistic Essentials
Knowledge Representation I (Propositional Logic)
Week 9 Warm-Ups English 12 Mrs. Fountain.
Identifying Parts of Speech
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Natural Language Sections

What the Speaker Speaks §Intention l S wants H to believe P §Generation l S chooses the words, W to convey the concept §Synthesis l S utters the words, W to H

Speaker

What the Hearer Hears §Perception l H perceives W’ (if we are lucky W’=W) §Analysis l H infers that W’ has possible meanings P1…Pn words and phrases can have several meanings §Disambiguation l H infers that S intended to convey Pi §Incorporation l H decides to believe Pi (or not)

Hearer

Encoded Message Model §One theory assumes that the problems are most easily understood if we can split them up into: l Encoding problems, in which the speaker does not correctly convert the proposition into a message l Transmission problems like noise l Decoding problems, causing the hearer to believe an unintended message

Situated Language Model §A more modern approach believes that the meaning of a message depends on both the words and the situation in which the words are used. l A toaster is hot if it is warm to the touch, selling well, or stolen. l What if the speaker assumes that hearer is in a context he is not in?

Telepathic Communication §Skip over the nasty problems of noise and mispronunciation and incorrect encoding (for now) so we can understand 3 simpler problems: l Naming -- When I refer to “the monster” am I talking about the same one you are? l Correlation -- If I am seeing the head of an elephant is it the same elephant whose tail you see? l Independent Knowledgebases -- Communication might not be free and instantaneous

Telepathic Communication

In Wumpus World §Robot Slave l I feel a breeze l Nothing is at 2 1 l In 2 2, I feel a breeze l OK. I will stay here. l OK, I am facing 1 3 l In 1 3 I feel breeze and smell stench and see glitter l... §Master l Go to 2 1 l Go North l A pit is to the East l Turn left l Go forward l Grab the gold l...

What the robot had to do §kb.tell(percept.getPercept(), timenow); §words <= percept.speechPart(); §msg <= words.disambig(); §if (msg.isCommand()) msg.doAction(); §if (msg.isStatement()) { l kb.tell(msg); l action = kb.askNextAct(percept,timenow); §return(percept + action)

A Formal Subset of English §Lexicon: The universe of all words we will use and their categories §Grammar: Valid combinations of words into phrases and sentences

Lexicon §Noun  stench | breeze | glitter |... §Verb  is | see | smell | shoot |... §Adjective  right | left | east | smelly |... §Adverb  right | left | here | there | ahead |... §Pronoun  me | you | it |... §Name  Jim | Mark |... §Article  the | a | an |... §Preposition  to | in | on | near |... §Conjunction  and | or | but |... §Digit  0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Grammar of pseudo-English in Backus-Naur Form (BNF) S  NP VPI + feel a breeze | S Conjunction SI feel a breeze + and + I smell a wumpus NP  PronounI | Nounpits | Article Nounthe + wumpus | Digit Digit3 4 | NP PPthe wumpus + to the east | NP RelClausethe wumpus + that is smelly

Grammar (cont.) VP  Verbstinks | VP NPfeel + a breeze | VP Adjectiveis + smelly | VP PPturn + to the east | VP Adverbgo + ahead PP  Preposition NPto + the east RelClause  that VPthat + is smelly

Railroad Diagram for S Noun PhraseVerb Phrase ConjunctionSS Notice that S is recursive

Parsing pseudo-English

Parse Tree

Conclusion §Natural language processing is hard l needs knowledge of a shared grammar l hard to integrate knowledge from another kb l hard to communicate goals, beliefs, plans §Speech is an attempt to get another agent to believe something or do something §Grammars are a useful tool for regularizing communications to avoid misunderstanding