Communicat ion J uly 14, 2005 CS 486/ 686 Universit y of Wat - - PowerPoint PPT Presentation

communicat ion
SMART_READER_LITE
LIVE PREVIEW

Communicat ion J uly 14, 2005 CS 486/ 686 Universit y of Wat - - PowerPoint PPT Presentation

Communicat ion J uly 14, 2005 CS 486/ 686 Universit y of Wat erloo Out line Communicat ion Symbolic Nat ural Language Processing Reading: R&N Sect . 22.1-22.6 2 CS486/686 Lecture Slides (c) 2005 P. Poupart Communicat ion


slide-1
SLIDE 1

Communicat ion

J uly 14, 2005 CS 486/ 686 Universit y of Wat erloo

slide-2
SLIDE 2

CS486/686 Lecture Slides (c) 2005 P. Poupart

2

Out line

  • Communicat ion
  • Symbolic Nat ural Language Processing
  • Reading: R&N Sect . 22.1-22.6
slide-3
SLIDE 3

CS486/686 Lecture Slides (c) 2005 P. Poupart

3

Communicat ion

  • Communicat ion: int ent ional exchange of

inf ormat ion brought about by t he product ion and percept ion of signs drawn f rom shared syst em of convent ion.

  • Language:

– Enables us t o communicat e – I nt imat ely t ied t o t hinking

slide-4
SLIDE 4

CS486/686 Lecture Slides (c) 2005 P. Poupart

4

Turing Test

  • Can a comput er f ool a human t o t hink

t hat it is communicat ing wit h anot her human?

slide-5
SLIDE 5

CS486/686 Lecture Slides (c) 2005 P. Poupart

5

Speech

  • Speech: communicat ion act

– Talking – Wr it ing – Facial expression – Gest ure ut t erances Speaker Hearer ut t erances situation

slide-6
SLIDE 6

CS486/686 Lecture Slides (c) 2005 P. Poupart

6

Component s of Communicat ion

  • I nt ent ion

– Speaker S decides t hat t here is some proposit ion P wort h saying t o hearer H.

  • Generat ion

– Speaker plans how t o t urn proposit ion P int o an ut t erance (i.e. a sequence of words W)

  • Synt hesis

– Speaker produces t he physical realizat ion W’ of t he words W (i.e., vibrat ion in air, ink on paper)

slide-7
SLIDE 7

CS486/686 Lecture Slides (c) 2005 P. Poupart

7

Component s of Communicat ion

  • Percept ion

– Hearer perceives physical realizat ion W’ as W2 and decodes it as t he words W2 (i.e., speech recognit ion, opt ical charact er recognit ion)

  • Analysis

– Hearer inf ers W 2 has possible meanings P

1, P 2, …

, P

n

– Three part s:

  • Synt act ic int erpret at ion
  • Semant ic int erpret at ion
  • Pragmat ic int erpret at ion
slide-8
SLIDE 8

CS486/686 Lecture Slides (c) 2005 P. Poupart

8

Component s of Communicat ion

  • Disambiguat ion

– Hearer inf ers t hat speaker int ended t o convey P

i (where ideally P i = P).

  • I ncorporat ion

– Hearer decides t o believe P

i (or not ).

slide-9
SLIDE 9

CS486/686 Lecture Slides (c) 2005 P. Poupart

9

Component s of Communicat ion

"The wumpus is dead"

Article Noun The wumpus is dead Verb Adjective NP VP S Tired(Wumpus,Now) Perception: Analysis: (Parsing):

(Semantic Interpretation):

HEARER

3

L

Alive(Wumpus,S ) Incorporation: TELL( KB,

(Pragmatic Interpretation):

3

Tired(Wumpus,S )

3

L L

Disambiguation:

3

L

Alive(Wumpus,S ) Alive(Wumpus,Now) Alive(Wumpus,S )

"The wumpus is dead"

Intention: Generation: Synthesis: SPEAKER

[thaxwahmpaxsihzdehd]

Know(H, Alive(Wumpus,S ))

L

3

slide-10
SLIDE 10

CS486/686 Lecture Slides (c) 2005 P. Poupart

10

Dif f icult ies

  • How could communicat ion go wrong?

– I nsincer it y – Speech recognit ion errors – Ambiguous ut t er ance – Dif f erent cont ext s

slide-11
SLIDE 11

CS486/686 Lecture Slides (c) 2005 P. Poupart

11

Language

  • Formal language

– Set of st rings of t erminal symbols (words) – St rict rules – E.g., f irst order logic, J ava

  • Nat ural language

– No st rict def init ion – Chinese, Danish, English, et c.

slide-12
SLIDE 12

CS486/686 Lecture Slides (c) 2005 P. Poupart

12

Grammar

  • Grammar specif ies t he composit ional

st ruct ure of complex messages

  • Each st ring in a language can be

analyzed/ generat ed by t he grammar

  • A grammar is a set of rewrit e rules

– S NP VP – Ar t icle t he | a | an | …

slide-13
SLIDE 13

CS486/686 Lecture Slides (c) 2005 P. Poupart

13

Grammar Types

  • Regular grammar:

– nont erminal t erminal [nont erminal] – S a S – S b

  • Cont ext f ree grammar (CFG):

– nont erminal anyt hing – S aSb

slide-14
SLIDE 14

CS486/686 Lecture Slides (c) 2005 P. Poupart

14

Grammar Types

  • Cont ext sensit ive grammar:

– More t erminals on right -hand side – ASB AAaBB

  • Recursively enumerable grammar:

– No const raint s

slide-15
SLIDE 15

CS486/686 Lecture Slides (c) 2005 P. Poupart

15

Lexicon example

  • Noun breeze | glitter | agent
  • Verb is | see | smell | shoot
  • Adj ect ive right | lef t | east | dead
  • Adverb there | nearby | ahead
  • Pronoun me | you | I | it
  • Name John | Mary | Boston
  • Art icle the | a | an
slide-16
SLIDE 16

CS486/686 Lecture Slides (c) 2005 P. Poupart

16

Grammar example

  • S NP VP | S Conjunction S
  • NP Pronoun | Name | Noun | Article

Noun | NP PP | NP RelClause

  • VP Verb | VP NP | VP Adjective | VP

PP | VP Adverb

  • PP
  • Preposition PP
  • RelClause
  • that VP
slide-17
SLIDE 17

CS486/686 Lecture Slides (c) 2005 P. Poupart

17

Grammat icalit y J udgement s

Grammar Natural language Set of strings

Goal: design grammar to match natural language

agreement

slide-18
SLIDE 18

CS486/686 Lecture Slides (c) 2005 P. Poupart

18

Grammat icalit y J udgement s

  • Overgenerat ion examples:

– Me go Bost on. – I smell pit gold wumpus not hing east .

  • Undergenerat ion example:

– I t hink t he wumpus is smelly

slide-19
SLIDE 19

CS486/686 Lecture Slides (c) 2005 P. Poupart

19

Synt act ic Analysis

  • Parsing: process of f inding a parse t ree

f or a given input st ring

I shoot the wumpus pronoun verb proposition noun NP VP NP S

slide-20
SLIDE 20

CS486/686 Lecture Slides (c) 2005 P. Poupart

20

Top-down parsing

  • St art wit h S and search f or a t ree t hat

has st ring at leaves

I shoot the wumpus pronoun verb proposition noun NP VP NP S

slide-21
SLIDE 21

CS486/686 Lecture Slides (c) 2005 P. Poupart

21

Bot t om up parsing

  • St art wit h st ring and search f or a t ree

t hat has S as root

I shoot the wumpus pronoun verb proposition noun NP VP NP S

slide-22
SLIDE 22

CS486/686 Lecture Slides (c) 2005 P. Poupart

22

Parsing ef f iciency

  • Top-down and bot t om up parsing

inef f icient …

– Exponent ial running t ime

  • Alt ernat ive: chart parsing

– Dynamic progr amming – Cubic running t ime

slide-23
SLIDE 23

CS486/686 Lecture Slides (c) 2005 P. Poupart

23

Augment ed Grammars

  • Grammars t end t o overgenerat e

– Ex: “me eat apple”

  • Augment grammar t o require

– Agreement bet ween subj ect and verb

  • Ex: “I smells” vs “I smell”

– Agreement bet ween verb subcat egory and complement

  • Ex: “give t he gold t o me”
  • Ex: “give me t he gold”
slide-24
SLIDE 24

CS486/686 Lecture Slides (c) 2005 P. Poupart

24

Parse ambiguit y

  • Some sent ences have many grammat ical

parses

  • Example:

– “Fall leaves f all and spring leaves spring”

slide-25
SLIDE 25

CS486/686 Lecture Slides (c) 2005 P. Poupart

25

Semant ic I nt erpret at ion

  • Ext ract meaning f rom ut t erances
  • Tradit ional approach

– Express meaning wit h logic

  • Problem

– Ambiguous semant ics – Ex: “Helicopt er powered by human f lies”

slide-26
SLIDE 26

CS486/686 Lecture Slides (c) 2005 P. Poupart

26

Ambiguit y

  • Possible causes:

– Met onymy: f igure of speech in which one

  • bj ect is used t o st and f or anot her

– Met aphor: f igure of speech in which a phrase wit h one lit eral meaning is used t o suggest a dif f erent meaning by analogy – Vagueness – Unknown cont ext

slide-27
SLIDE 27

CS486/686 Lecture Slides (c) 2005 P. Poupart

27

Cont ext / Experience

  • Meaning of t en grounded in experience
  • But humans and machines have dif f erent

experiences because of dif f erent sensors…

  • I s t hat a problem f or nat ural language

underst anding?

slide-28
SLIDE 28

CS486/686 Lecture Slides (c) 2005 P. Poupart

28

Next Class

  • Next Class:
  • Probabilist ic Language Processing
  • Russell and Norvig Ch. 23