september 17, 2007 11-721: grammars and lexicons lori levin

52
September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Upload: joan-stevenson

Post on 28-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

September 17, 2007

11-721: Grammars and Lexicons

Lori Levin

Page 2: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Summary of English Noun Phrases

• There is a kind of constituent (an N-bar) that you probably didn’t know was there.– The methodology of using tests for constituency lead to

this discovery. – This is an advantage of a precise methodology; it leads

you to discover things.

• Phrases have heads.• The heads are surrounded by layers of modifiers.

– Innermost layer: complements/arguments– Second layer (recursive): adjuncts– Outermost layer: specifiers

Page 3: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Heads

• The head determines the properties of the whole phrase.– The child’s book is on the table.

• Singular head, singular NP.

– The children’s book is on the table.• Singular head, singular NP.• The number of the possessor doesn’t matter.

– The child’s books are on the table.• Plural head, plural NP.

• Important for grammar writing. – Features need to be passed up from the head.

• Important for dependency parsing.

Page 4: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Structure and Function

• Grammar is about function as well as structure.

• Grammar is about the mapping between structure and function.

Page 5: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

The Functions of NPs

• Grammatical Functions:– Subject and object

• Semantic Roles:– Agent and patient

• Pragmatic Roles:– Old and new information

Page 6: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Functions of NPs

• What did the kids eat?

They ate some chocolate. – Typical sentence:

• Subject=agent=old information• Also typical because the subject is animate and definite and the object is

inanimate and indefinite.

• If all sentences were like this, syntacticians could retire.

Page 7: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Functions of NPs

• Some chocolate was eaten by the kids– The subject is not the agent.

• Who ate the chocolate?

The kids ate the chocolate?– Subject is new information.

Page 8: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Semantic Roles

• Sam opened the door with a key.• They key opened the door.• The door was opened by Sam with a key.• The door opened (with a key).

• Sam bought a book from Sue.• Sue sold a book to Sam.

Page 9: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Predicates and Arguments

• Verbs (and sometimes nouns and adjectives) describe events, states, and relations that have a certain number of participants.– The children devoured the spaghetti.

• Two participants

– The teacher handed the book to the student.• Three particpants.

– Problems exist.• One participant.

• The participants are referred to as arguments of the verb. (Like arguments of a function.)

Page 10: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Valency and Subcategorization

• Fillmore and Kay, Lecture Notes, Chapter 4:– The children devoured the spaghetti.– *The children devoured.– *The children devoured the spaghetti the cheese.

– She handed the baby a toy.– *She handed the baby.– *She handed the toy.

– Problems exist.– *Problems exist more problems.

Page 11: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Valency

• The number of participants is called the verb’s valence or valency. – Devour has a valency of two.– Hand has a valency of three.– Exist has a valency of one.

• Linguists took this term from chemistry – how many electrons are missing from the outer shell.– The first linguist to use the term was Charles Hockett

in the 1950’s.

Page 12: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Subcategorization

• Verbs are divided into subcategories that have different valencies.

• Here is how the terminology works:– Exist, devour, and hand have different

subcategorizations • i.e., They are in different subcategories

– Devour subcategorizes for a subject and a direct object.

– Devour is subcategorized for a subject and a direct object.

– Devour takes two arguments, a subject and a direct object (or an agent and a patient).

Page 13: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Arguments are not always Noun Phrases

• The italicized phrases are also arguments:– He looked very pale.

• Adjective Phrase

– The solution turned red.• Adjective Phrase

– I want to go.• Verb Phrase

– He started singing a song.• Verb Phrase

– We drove to New York.• Prepositional Phrase

Page 14: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Optional and Obligatory Arguments

• The direct object of eat is optional:– The children ate.– The children ate cake.

• The direct object of devour is not optional:– *The children devoured.– The children devoured the cake.

Page 15: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Optional Arguments

• The dog ran.

• The dog ran from the house to the creek through the garden along the path.

Page 16: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Optional vs. Invisible Arguments

a. What happened to the cake?

b. The children ate.

b’. The children ate it.

In English, Sentences b and b’ do not mean the same thing in this context.

Compare to Japanese and Chinese.

Page 17: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Adjuncts

• Locations, times, manners, and other things that can go with almost any sentences are called adjuncts.– The children ate the cake quickly at 2:00

in the kitchen.

Page 18: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

How to tell arguments from adjuncts

• There are some general guidelines that are not always conclusive.

• Adjuncts are always optional.– but some arguments are optional too

• Repeatability:– The children devoured the cake at 2:00 on

Monday.• Two temporal adjuncts

– The children devoured the cake in Pittsburgh in a restaurant.

• Two locative adjuncts

– *The children devoured the cake the dessert. • arguments are not repeatable

Page 19: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Semantic Roles: Motivation

• The verb open appears in different subcategorization patterns:– Sam opened the door with a key.– The key opened the door.– The door was opened by Sam with a key.– Sam’s opening of the door with a key

• How can we represent the meanings of these sentences in a way that shows that they are related?

Page 20: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Semantic Roles: Motivation

• These sentences do not have the same meaning even though they have the same verb:– Sam interviewed Sue.– Sue interviewed Sam.

Page 21: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Semantic Roles: Motivation

These sentences mean roughly the same thing even though they use different verbs:

• Sam bought a toy from Sue.• Sue sold a toy to Sam.

Page 22: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Semantic role names

– Sam opened the door with a key.– The key opened the door.– The door was opened by Sam with a key.– Sam’s opening of the door with a key

• Open– Agent: Sam– Patient: door– Instrument: key

Page 23: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Semantic Roles Names

• These sentences do not have the same meaning:– Sam interviewed Sue.– Sue interviewed Sam.

• Interview– Agent: Sam– Patient: Sue

• Interview– Agent: Sue– Patient: Sam

Page 24: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Examples of Semantic Roles

• Agent: an agent acts volitionally or intentionally– The students worked.– Sue baked a cake.

Page 25: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Examples of Semantic Roles

• Experiencer and Perceived: – An experiencer is an animate being that perceives

something, cognizes about something, or or experiences an emotion.

– The perceived is the thing that the experiencer perceives or the thing that caused the emotional response.

• The students like linguistics. – (emoter and perceived)

• The students saw a linguist. – (perceiver and perceived)

• Linguistics frightens the students. – (emoter and perceived)

• The students thought about linguistics. – (cognizer and perceived)

Page 26: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Examples of Semantic Roles• Patient: A patient is affected by an action.

– Sam kicked the ball.– Sue cut the cake.

• Beneficiary: A beneficiary benefits from an event– Sue baked a cake for Sam.– Sue baked Sam a cake.

• Malefactive: Someone is affected adversely by an event.– My dog died on me.

• Instrument: – The boy opened the door with a key.– The key opened the door.

• Location:– The clock stands on the shelf.– I put the book on the shelf.

Page 27: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Three approaches to semantic roles in meaning representations

• Ray Jackendoff (1972, 1990) Linguistic Theory– Lexical Conceptual Structure– The Motion/Location Metaphor– Semantic Roles

• Charles Fillmore, FrameNet Project Lexicon– Frame-semantics

• Martha Palmer, PropBank Project Corpus Annotation– Predicate-specific role names:– Proto-grammatical relations

Page 28: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Ray Jackendoff

• Semantic Interpretation in Generative Grammar, MIT Press, 1972

• Semantic Structures, MIT Press, 1990. – Theory of human cognition– Used by many computational linguists

Page 29: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Lexical Conceptual Structure

• Primitives:– GO, BE, STAY, CAUSE, and several more – TO, FROM, AWAY, TOWARD, VIA, and several more

• Types of entities:– Event, State, Thing, Place, Path

• Other tiers of representation are added in order to capture nuances of meaning and grammar:– Cause and affectedness– Manner– Actor and undergoer (see discussion of PropBank)

Page 30: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Example of Lexical Conceptual Structure

Sam threw the ball across the room. [event

CAUSE [thing SAM] [event GO [thing BALL] [path TO [place AT [thing other-side-of-room]]]]]

Page 31: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Lexical Conceptual Structure and Semantic Role Names

Sam threw the ball across the room. [event

CAUSE [thing SAM] agent [event GO [thing BALL] theme [path TO [place AT [thing other-side-of-room]]]]] goal

Page 32: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

The Motion/Location Metaphor

• J. S. Gruber, Studies in Lexical Relations, MIT Dissertation, 1965.– Agent: causes, manipulates, affects– Theme: changes location, is located

somewhere, or exists– Source: the starting point of the motion– Goal: the ending point of the motion– Path: the path of the motion

Page 33: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Examples of Location and Directed Motion

• Many problems still exist.

• The clock sits on the shelf.

• The ball rolled from the door to the window along the wall.

• Same walked from his house to town along the river.

• Sue rolled across the room.

• The car turned into the driveway.

Page 34: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Being in a state or changing state

• The car is red.

• The ice cream melted.

• The glass broke.

• Sam broke the glass.

• The paper turned from red to green.

• The fairy godmother turned the pumpkin into a coach.

Page 35: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Having or Changing possession

• The teacher gave books to the students.

• The teacher gave the students books.

• The students have books.

Page 36: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Exchange of Information

• The teacher told a story to the students.

• The teacher told the students a story.

Page 37: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Extent

• The road extends/runs along the river from the school to the mall.

• The string reaches the wall.

• The string reaches across the room to the wall.

Page 38: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Strong points of LCS and the Motion/Location Metaphor

• Sam manipulates a key, having an effect on the door, causing it to go from the state of being closed to the state of being open. – Sam opened the door with a key.– The key opened the door.– The door was opened by Sam with a key.– Sam’s opening of the door with a key

Page 39: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Strong points of LCS and the Motion/Location Metaphor

• A toy goes from Sue to Sam. Some money goes from Sam to Sue.

• Differences in the causation tier.– Sam bought a toy from Sue.– Sue sold a toy to Sam.

Page 40: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Strong points of LCS and the Motion/Location Metaphor

• Supports some inferences:– If X goes from A to B, then X is no longer at A.– If X is created (begins to BE) during event Y,

then X doesn’t exist until Y is finished.

Page 41: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Strong or weak point?

• LCS wasn’t designed for this kind of thing:– Sam took a bus to school.– Sam got on the bus and went to school. – Sam riding on the bus, went to school. – Sam sat on the bus, went to school. – Sam went to school by bus.– Sam went to school by taking a bus.

• FrameNet (Fillmore et al.) handles this kind of thing.

Page 42: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Problem with Thematic Roles and the Motion/Location Metaphor

• It is not clear how to apply the metaphor to many verbs (Fillmore and Kay, Lecture Notes, pages 4-22)– He risked death.– We resisted the enemy.– She resembles her mother.

Page 43: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

LCS Resources

• Bonnie Dorr, University of Maryland• http://www.umiacs.umd.edu/~bonnie/LCS_Datab

ase_Documentation.html

• LCS Lexicon for English – English word senses are mapped to WordNet– Handcrafted lexical entries for around 4000 verbs– Automatically produced entries may be available for a

full-sized lexicon

• LCS Dictionaries for other languages may be available– May be handcrafted or produced partially automatically

Page 44: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Charles Fillmore, Collin Baker, and others FrameNet Project

• http://www.icsi.berkeley.edu/~framenet/

• Frame semantics– Frames are networked using several relations– Based on corpus analysis

• Lexical entries for around 7500 English verbs

• Other FrameNet projects in – Spanish– Japanese

Page 45: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Martha Palmer and othersThe PropBank Project

• http://www.cis.upenn.edu/~ace/

• Annotate the Penn TreeBank with predicate-argument information

• Corpus can be used for automatic learning of the surface realization of each argument

Page 46: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

PropBank and FrameNet: Close ties

• PropBank lexical entries are linked to FrameNet entries.– There are more PropBank entries than

FrameNet entries

• This paper contains some comparisons of PropBank and Framenet– http://www.cis.upenn.edu/~dgildea/gildea-acl0

2.pdf

• See also VerbNet– http://www.cis.upenn.edu/group/verbnet/

Page 47: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Proto-roles and verb-specific roles

• http://www.cis.upenn.edu/~dgildea/Verbs/

• Abandon– Arg0:abandoner

– Arg1:thing abandoned, left behind

– Arg2:attribute of arg1

Page 48: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

PropBank: multiple surface realizations of

arguments

– Sam opened the door with a key.– The key opened the door.– The door was opened by Sam with a key.– Sam’s opening of the door with a key

– Arg0:opener Sam– Arg1:thing opening door– Arg2:instrument key– Arg3:benefactive

Page 49: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

What are the arg-n’s?

• The arg-n labels are arbitrary labels.

• However, PropBank tries to use them consistently across verbs.– Arg0 tends to be an agent or the argument most

likely to be the subject in active voice. – Arg1 tends to be a theme or patient or the thing

most likely to be• The direct object of a transitive verb in active voice

• The subject of a verb in passive voice

• The subject of an intransitive verb

Page 50: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

PropBank was not designed for this

• Sam took a bus to school.• Sam ascended onto the bus and went to

school. (Hebrew)• Sam riding on the bus, went to school.

(Japanese)• Sam sat on the bus, went to school.

(Chinese)• Sam went to school by bus.• Sam went to school by taking a bus.

• But it is linked to FrameNet

Page 51: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Van Valin: three layers of semantic roles

• Verb specific roles:– Writer, reader, kicker, …..– Knower, thinker, realizer, …..– Liker, hater, ……– Hearer, seer, feeler, ……

• Semantic role classes– Agent– Cognizer– Emoter– Perceiver

• Proto Roles– Actor

Page 52: September 17, 2007 11-721: Grammars and Lexicons Lori Levin

Difference between Van Valin and the movement/location metaphor

• Van Valin uses the role patient for things that are called themes in the movement/location metaphor.