understanding sentences - informatics 1 cg: lecture 14 › teaching › courses › inf1-cg ›...

53
Understanding Sentences Informatics 1 CG: Lecture 14 Mirella Lapata School of Informatics University of Edinburgh [email protected] February 11, 2016 Informatics 1 Cognitive Science Understanding Sentences 1

Upload: others

Post on 28-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Understanding SentencesInformatics 1 CG: Lecture 14

Mirella Lapata

School of InformaticsUniversity of [email protected]

February 11, 2016

Informatics 1 Cognitive Science Understanding Sentences 1

Page 2: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Reading:

Trevor Harley (2001). The Psychology of Language,Chapter 9

Informatics 1 Cognitive Science Understanding Sentences 2

Page 3: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Recap: The Associationist View of Word Meaning

You shall know a word by the company it keeps (Firth, 1957).

Distributional hypothesis about word meaning: the contextsurrounding a given word provides information about itsmeaning.

Experimental evidence indicates that the cognitive system issensitive to distributional information.

Construction of vector spaces.

Latent Semantic Analysis.

What happens after we recognize a word? How do we puttogether words to form meaningful sentences?

Informatics 1 Cognitive Science Understanding Sentences 3

Page 4: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Recap: The Associationist View of Word Meaning

You shall know a word by the company it keeps (Firth, 1957).

Distributional hypothesis about word meaning: the contextsurrounding a given word provides information about itsmeaning.

Experimental evidence indicates that the cognitive system issensitive to distributional information.

Construction of vector spaces.

Latent Semantic Analysis.

What happens after we recognize a word? How do we puttogether words to form meaningful sentences?

Informatics 1 Cognitive Science Understanding Sentences 3

Page 5: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Sound to Meaning

Acoustic Signal

Word Segmentation

Lexical Access

Syntactic Parsing

Semantic Interpretation

Meaning

Propagation across levels

Inp

ut

over

tim

e

Informatics 1 Cognitive Science Understanding Sentences 4

Page 6: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Parsing

How do we understand a sentence? First step is to “parse” it.

Parsing takes place unconsciously (involves finding thesubjects, verbs, objects and so on).

A parser is the mental program that analyzes sentencestructure during language comprehension.

Ultimately parsing helps us to interpret sentences duringlanguage comprehension.

1 The ghost chased the vampire.

2 The vampire chased the ghost.

3 The vampire was chased by the ghost.

Informatics 1 Cognitive Science Understanding Sentences 5

Page 7: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Parsing

How do we understand a sentence? First step is to “parse” it.

Parsing takes place unconsciously (involves finding thesubjects, verbs, objects and so on).

A parser is the mental program that analyzes sentencestructure during language comprehension.

Ultimately parsing helps us to interpret sentences duringlanguage comprehension.

1 The ghost chased the vampire.

2 The vampire chased the ghost.

3 The vampire was chased by the ghost.

Informatics 1 Cognitive Science Understanding Sentences 5

Page 8: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Parsing

How do we understand a sentence? First step is to “parse” it.

Parsing takes place unconsciously (involves finding thesubjects, verbs, objects and so on).

A parser is the mental program that analyzes sentencestructure during language comprehension.

Ultimately parsing helps us to interpret sentences duringlanguage comprehension.

1 The ghost chased the vampire.

2 The vampire chased the ghost.

3 The vampire was chased by the ghost.

Informatics 1 Cognitive Science Understanding Sentences 5

Page 9: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

The Big Picture

⇒ look at theyellow dog

S

V

look

PP

P

at

NP

Det

the

Adj

yellow

N

dog

Today we will look at parsing, which turns a sequence of wordsinto a syntactic representation.

Syntactic representations make explicit how the words in asentence relate to each other.

Informatics 1 Cognitive Science Understanding Sentences 6

Page 10: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Phrase Structure Grammar

In order to build syntactic representations, we need a grammar.The simplest type of grammar is a context-free grammar:

Phrasal categories:S: sentence, NP: noun phrase, VP: verb phrase

Lexical categories (aka parts of speech):Det: determiner, N: noun, V: verb

Phrase structure rules:

S → NP VP Det → theNP → Det N N → kittenVP → V NP N → dog

V → bit

Informatics 1 Cognitive Science Understanding Sentences 7

Page 11: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Phrase Structure Grammar

In order to build syntactic representations, we need a grammar.The simplest type of grammar is a context-free grammar:

Phrasal categories:S: sentence, NP: noun phrase, VP: verb phrase

Lexical categories (aka parts of speech):Det: determiner, N: noun, V: verb

Phrase structure rules:

S → NP VP Det → theNP → Det N N → kittenVP → V NP N → dog

V → bit

Informatics 1 Cognitive Science Understanding Sentences 7

Page 12: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Phrase Structure Grammar

In order to build syntactic representations, we need a grammar.The simplest type of grammar is a context-free grammar:

Phrasal categories:S: sentence, NP: noun phrase, VP: verb phrase

Lexical categories (aka parts of speech):Det: determiner, N: noun, V: verb

Phrase structure rules:

S → NP VP Det → theNP → Det N N → kittenVP → V NP N → dog

V → bit

Informatics 1 Cognitive Science Understanding Sentences 7

Page 13: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Phrase Structure Grammar

In order to build syntactic representations, we need a grammar.The simplest type of grammar is a context-free grammar:

Phrasal categories:S: sentence, NP: noun phrase, VP: verb phrase

Lexical categories (aka parts of speech):Det: determiner, N: noun, V: verb

Phrase structure rules:

S → NP VP Det → theNP → Det N N → kittenVP → V NP N → dog

V → bit

Informatics 1 Cognitive Science Understanding Sentences 7

Page 14: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 15: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 16: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 17: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 18: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 19: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 20: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 21: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 22: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 23: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

A derivation is the sequence of strings that results from applying asequence of grammar rules:

Derivation

S → NP VP → NP V NP → NP V Det N → NP bit Det N → NPbit Det dog → NP bit the dog → Det N bit the dog → the N bitthe dog → the kitten bit the dog

Informatics 1 Cognitive Science Understanding Sentences 8

Page 24: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Derivations and Syntax Trees

Derivations are represented as syntax trees:

S

NP

Det

The

N

kitten

VP

V

bit

NP

Det

the

N

dog

Syntactic ambiguity: a sentence can have multiple syntax trees.These correspond to different interpretations.

Informatics 1 Cognitive Science Understanding Sentences 9

Page 25: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Human Sentence Processing

A parser takes a sentence and computes a syntax tree for it, givena grammar. This is a prerequisite for assigning an interpretation tothe sentence.

The cognitive device that performs syntactic parsing is calledhuman sentence processing mechanism (HSPM).

Parsing is incremental: the HSPM builds structures word by wordas the input arrives.

But what if more than one structure is compatible with the input:

at the current point but not later: local ambiguity;

for the input overall: global ambiguity.

Informatics 1 Cognitive Science Understanding Sentences 10

Page 26: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Global Ambiguity

Given a grammar, strings that have more than one completesyntax tree (parse) are said to have global structural ambiguity.

Examples

1 She sat on the chair covered in dust.

2 I put the book on the table in the kitchen.

3 Lung cancer in women mushrooms.

Examples from http://www.fun-with-words.com/ambiguous_garden_path.html

Informatics 1 Cognitive Science Understanding Sentences 11

Page 27: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Global Ambiguity

S

NP

NP

N

lung

N

cancer

PP

Prep

in

N

women

VP

V

mushrooms

NP

NP

N

lung

N

cancer

PP

Prep

in

NP

N

women

N

mushrooms

Informatics 1 Cognitive Science Understanding Sentences 12

Page 28: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Global Ambiguity

S

NP

NP

N

lung

N

cancer

PP

Prep

in

N

women

VP

V

mushrooms

NP

NP

N

lung

N

cancer

PP

Prep

in

NP

N

women

N

mushrooms

Informatics 1 Cognitive Science Understanding Sentences 12

Page 29: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Global Ambiguity

S

NP

NP

N

lung

N

cancer

PP

Prep

in

N

women

VP

V

mushrooms

NP

NP

N

lung

N

cancer

PP

Prep

in

NP

N

women

N

mushrooms

Informatics 1 Cognitive Science Understanding Sentences 12

Page 30: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Local Ambiguity

When only an initial substring is structurally ambiguous, thesentence is said to have local ambiguity; once the remainder of thestring is known, only one tree remains possible.

Example

The athlete realized his potential . . .a. . . . at the competition.b. . . . could make him a world-class sprinter

Informatics 1 Cognitive Science Understanding Sentences 13

Page 31: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Local Ambiguity: Structure 1 (VP → V NP)

S

NP

Det

the

N

athlete

VP

VP

V

realized

NP

Det

his

N

potential

PP

. . .

The athlete realized his potential at the competition.

Informatics 1 Cognitive Science Understanding Sentences 14

Page 32: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Local Ambiguity: Structure 1 (VP → V S)

S

NP

Det

the

N

athlete

VP

V

realized

S

NP

Det

his

N

potential

VP

. . .

The athlete realized his potential could make him aworld-class sprinter.

Informatics 1 Cognitive Science Understanding Sentences 15

Page 33: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Garden Paths

This is an example of a garden path:

both structures are compatible with the input up untilpotential ; only the next word disambiguates;

however, the processor commits to a single (wrong) structureearly on, and trips up when later input is inconsistent withthat structure;

presumably, the processor now has to compute a newstructure that is consistent with the input;

garden path sentences result in longer reading times, reverseeye-movements, lower comprehension accuracies, etc.;

some garden paths are so strong that the parser fails torecover from them.

Informatics 1 Cognitive Science Understanding Sentences 16

Page 34: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Garden Paths

More examples of garden paths

1 I convinced her children are noisy.

2 Until the police arrest the drug dealers control the street.

3 The old man the boat.

4 Fat people eat accumulates .

5 The cotton clothing is usually made of grows in Mississippi.

6 The prime number few.

Examples from http://www.fun-with-words.com/ambiguous_garden_path.html

Informatics 1 Cognitive Science Understanding Sentences 17

Page 35: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Garden Paths

More examples of garden paths

1 I convinced her that children are noisy.

2 Until the police arrest the drug dealers control the street.

3 The old man the boat.

4 Fat people eat accumulates .

5 The cotton clothing is usually made of grows in Mississippi.

6 The prime number few.

Examples from http://www.fun-with-words.com/ambiguous_garden_path.html

Informatics 1 Cognitive Science Understanding Sentences 17

Page 36: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Garden Paths

More examples of garden paths

1 I convinced her children are noisy.

2 Until the police make the arrest , the drug dealers control thestreet.

3 The old man the boat.

4 Fat people eat accumulates .

5 The cotton clothing is usually made of grows in Mississippi.

6 The prime number few.

Examples from http://www.fun-with-words.com/ambiguous_garden_path.html

Informatics 1 Cognitive Science Understanding Sentences 17

Page 37: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Garden Paths

More examples of garden paths

1 I convinced her children are noisy.

2 Until the police arrest the drug dealers control the street.

3 The old people man the boat.

4 Fat people eat accumulates .

5 The cotton clothing is usually made of grows in Mississippi.

6 The prime number few.

Examples from http://www.fun-with-words.com/ambiguous_garden_path.html

Informatics 1 Cognitive Science Understanding Sentences 17

Page 38: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Garden Paths

More examples of garden paths

1 I convinced her children are noisy.

2 Until the police arrest the drug dealers control the street.

3 The old man the boat.

4 The Fat that people eat accumulates in their bodies.

5 The cotton clothing is usually made of grows in Mississippi.

6 The prime number few.

Examples from http://www.fun-with-words.com/ambiguous_garden_path.html

Informatics 1 Cognitive Science Understanding Sentences 17

Page 39: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Garden Paths

More examples of garden paths

1 I convinced her children are noisy.

2 Until the police arrest the drug dealers control the street.

3 The old man the boat.

4 Fat people eat accumulates .

5 The cotton that clothing is usually made of grows inMississippi.

6 The prime number few.

Examples from http://www.fun-with-words.com/ambiguous_garden_path.html

Informatics 1 Cognitive Science Understanding Sentences 17

Page 40: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Garden Paths

More examples of garden paths

1 I convinced her children are noisy.

2 Until the police arrest the drug dealers control the street.

3 The old man the boat.

4 Fat people eat accumulates .

5 The cotton clothing is usually made of grows in Mississippi.

6 The prime people number few.

Examples from http://www.fun-with-words.com/ambiguous_garden_path.html

Informatics 1 Cognitive Science Understanding Sentences 17

Page 41: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Two Theories of Human Parsing

1 What mechanism is used to construct interpretations?2 What information is used to determine preferred

structure?

Garden Path Theory

Parsing is autonomousand takes place in twostages; during stage 1only syntacticinformation is taken intoaccount; stage 2 takesadditional informationsources into account ifsingle analysis turns outto be incorrect.

Constraint-based Theory

Parsing is interactiveand takes place in onestage. Processor usesmultiple sources ofinformation at once,structure mostsupported by constraintsis active, plausiblealternatives also remainactive.

Informatics 1 Cognitive Science Understanding Sentences 18

Page 42: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

The Garden Path Theory (Frazier, 1987)

S

NP

PN

John

VP

V

saw

NP

Det

the

N

man

PP

P

with

NP

Det

the

N

telecsope

Informatics 1 Cognitive Science Understanding Sentences 19

Page 43: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

The Garden Path Theory (Frazier, 1987)

S

NP

PN

John

VP

V

saw

NP

Det

the

N

man

PP

P

with

NP

Det

the

N

telecsope

Informatics 1 Cognitive Science Understanding Sentences 19

Page 44: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

The Garden Path Theory (Frazier, 1987)

S

NP

PN

John

VP

V

saw

NP

Det

the

N

man

PP

P

with

NP

Det

the

N

telecsope

Which attachment do people initially prefer?

Informatics 1 Cognitive Science Understanding Sentences 19

Page 45: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

First Strategy: Minimal Attachment

S

NP

PN

John

VP

V

saw

NP

NP

Det

the

N

man

PP

P

with

NP

Det

the

N

telescope

Adopt structure containing fewest number of nodes

Informatics 1 Cognitive Science Understanding Sentences 20

Page 46: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

First Strategy: Minimal Attachment

S

NP

PN

John

VP

V

saw

NP

NP

Det

the

N

man

PP

P

with

NP

Det

the

N

telescope

Adopt structure containing fewest number of nodes

Informatics 1 Cognitive Science Understanding Sentences 20

Page 47: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

First Strategy: Minimal Attachment

S

NP

PN

John

VP

V

saw

NP

Det

the

N

man

PP

P

with

NP

Det

the

N

telescope

Adopt structure containing fewest number of nodes

Informatics 1 Cognitive Science Understanding Sentences 20

Page 48: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

First Strategy: Minimal Attachment

S

NP

PN

John

VP

V

saw

NP

Det

the

N

man

PP

P

with

NP

Det

the

N

telescope

Adopt structure containing fewest number of nodes

Informatics 1 Cognitive Science Understanding Sentences 20

Page 49: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Second Strategy: Late Closure

S

NP

The reporter

VP

V

said

S

NP

the plane

VP

V

crashed

AdvP

last night

]

Add incoming material to clause/phrase currently processed.

Informatics 1 Cognitive Science Understanding Sentences 21

Page 50: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Second Strategy: Late Closure

S

NP

The reporter

VP

V

said

S

NP

the plane

VP

V

crashed

AdvP

last night

Add incoming material to clause/phrase currently processed.

Informatics 1 Cognitive Science Understanding Sentences 21

Page 51: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

The Competition Integration Model (McRae et al., 1998)

Diverse constraints (linguistic and conceptual) are brought to bearsimultaneously in ambiguity resolution.

Model assumes all possible analyses are constructed

Constraints provide probabilistic support for analyses

There are multiple processing cycles given each input

On each cycle, evidence in support of the syntacticalternatives is computed.

Competition ends when the activation of one alternativereaches a threshold.

Processing time is assumed to be a linear function of theduration of competition.

Informatics 1 Cognitive Science Understanding Sentences 22

Page 52: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

The Competition Integration Model (McRae et al., 1998)

The crook arrested by the detective was guilty of taking bribes.was guilty of taking bribes

AgentRating

Other Roles

Past Participle

SimplePast

RRSupport

MCSupport

Patient Rating

AgentRating

P(RR) P(MC)

RRSupport

MCSupport

ReducedRelative

MainClause

Thematic fitof initial NP

Thematic fitof agent NP

Main clause bias

Main verb bias

Verb tense/voice

Parafovealby-bias

Informatics 1 Cognitive Science Understanding Sentences 23

Page 53: Understanding Sentences - Informatics 1 CG: Lecture 14 › teaching › courses › inf1-cg › lectures › ... · Informatics 1 Cognitive ScienceUnderstanding Sentences 2 Recap:

Summary

Sentence processing (parsing) is the task of assigning astructure to a string of words;

Human sentence processing is incremental (word by word);

It can encounter global vs local ambiguity.

Garden paths derive from local ambiguities that are hard toresolve; they lead to longer processing times

Theories of sentence processing: serial vs parallel, autonomousvs. interactive.

Informatics 1 Cognitive Science Understanding Sentences 24